Module inquiry: random id / variable

Hi all. Just fielding a question. Anyone know of a module that will set
a random number?

For example:
seedrandom on;

The goal is to have the value stored / accessible throug a variable:

$randomid

Just wondering if such a module exists and if not, suggestions on a
starting point – perphaps a module that does something similar? Time
is pressing here, so I’d rather modify as little as possible.

Thanks for reading!

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,22435,22435#msg-22435

icqheretic wrote:

Hi all. Just fielding a question. Anyone know of a module that will set a random number?

For example:
seedrandom on;

The goal is to have the value stored / accessible throug a variable:

$randomid

Just wondering if such a module exists and if not, suggestions on a starting point – perphaps a module that does something similar? Time is pressing here, so I’d rather modify as little as possible.

This can be done by embedded perl

perl_set $random_id ‘sub { int(rand(2**32)); }’;