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.