The stupid question is the question not asked | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi mp,
All you have to do is call srand() with the same value every time. So use a constant, or even a literal, instead of a variable. So, if your program begins srand(42), it will always return the same sequence of random numbers. Hope this helps thinker In reply to Re: Generating Repeatable Pseudorandom Sequences
by thinker
|
|