On 06.Oct.2002 -- 04:57 PM, Antonio Gallardo Rivera wrote:
> Hi Folks!
>
> Is in Cocoon support for generating random database keys? Or a function that
> can return a random number?
>
> I know that in Java is support for the Random class. This class generate a
> sequence based on a seed (like always).
>
> The point is: I need generator of random numbers that will live all the
> run-time to return for every request a new random number lets said: 2^32.
There's an InputModule for that. It might not fulfill all your needs
but could be a starting point. You can simply specify it in the mod-db
descriptor to be used for a column.
Chris.
--
C h r i s t i a n H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>