![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Can I seed srand() with results from rand()?by clintp (Curate) |
on Jul 10, 2003 at 02:47 UTC ( #272876=note: print w/replies, xml ) | Need Help?? |
When I'm debugging something that I want to have pseudorandom behavior in real life, I use srand() with a constant to make the results predictable during debugging. Once I'm satisfied that things are working properly, I chuck the srand() completely (5.6+) and let things go.
In Section
Seekers of Perl Wisdom
|
|