Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Best random number

by Callum (Chaplain)
on Dec 19, 2002 at 13:57 UTC ( [id://221110]=note: print w/replies, xml ) Need Help??


in reply to Best random number

I rely on Math::TrulyRandom when I need better than built in rand

Replies are listed 'Best First'.
Re: Re: Best random number
by mce (Curate) on Dec 19, 2002 at 14:11 UTC
    Hi,

    I agree with Math::TrulyRandom, but since the generation might take a long time, it is best to use this only as a seed generator, and use rand which is pretty reliable.
    ---------------------------
    Dr. Mark Ceulemans
    Senior Consultant
    IT Masters, Belgium

      use this only as a seed generator, and use rand

      The random seed set by srand is usually 32 bits. If you put 32 bits of randomness in, you cannot expect more than 32 bits of randomness out. Someone might be able to predict the rest of the sequence. That might be good enough, and it might not.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://221110]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-19 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found