http://www.perlmonks.org?node_id=49422


in reply to Generating Random Integers

FMTYRWTK, but depending upon your application, you might consider the use of Math::TrulyRandom, available at your local

perl -MCPAN -e "install Math::TrulyRandom"

Random numbers generated by computers are "mostly" random. This module does a good job of making them "really" random. :)

I say "depending upon your application" because you may require more randomness than what is provided by the seed value you are sending srand()... :)