It is fine to set the seed with srand(), but if you want good randomness, then don't do it quite that way because it clobbers the (probably better) seed that modern versions of Perl pick for you. Instead, add your seed into the mix:
- tye (but my friends call me "Tye")srand( rand(~0) ^ (time() ^ (time() % $]) ) ^ exp(length($0))**$$);
In reply to (tye)Re: Generating Random Integers
by tye
in thread Generating Random Integers
by --OutpostMir--
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |