in reply to Re: is rand() random
in thread is rand() random
-
rand() uses (IIRC) the built-in rand() function on
your platform.
More to the point, stdlib rand() functions tend to be abysmally poor at generating even remotely random numbers (for both statistical and cryptographic definitions of "random"). Math::Random and Math::TrulyRandom are both good places to look for randomness in Perl, but coding up your own PRNG isn't terribly taxing, and a lot of fun.
In Section
Seekers of Perl Wisdom