On Fri, Jan 31, 2003 at 04:00:49PM -0500, Jamie Risk wrote:
> I'm thinking I could open up "/dev/urandom/" but that hardly seems portable.
> 
> "Jamie Risk" <[EMAIL PROTECTED]> wrote in message
> b1enfr$evm$[EMAIL PROTECTED]">news:b1enfr$evm$[EMAIL PROTECTED]...
> > I'm looking around, and I see "Quantum::Entanglement" which looks like
> > overkill; I'd like to generate, 8/16/32 bit random numbers.

Perl's random number function is called "rand".

perldoc -f rand

my $num = int rand 2 ** $bits;


-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to