![]() |
|
"be consistent" | |
PerlMonks |
Re: Generating Repeatable Pseudorandom Sequencesby waswas-fng (Curate) |
on Sep 04, 2002 at 19:25 UTC ( #195172=note: print w/replies, xml ) | Need Help?? |
I guess I am missing the point of the question, first you ask:
I need to be able to generate repeatable pseudo random sequences of integers in a range 1-N, such that given the same (integer) seed, the same sequence will always be produced. Then: so I would like to avoid leaving the seed set to a deterministic value. So it looks like you are asking for 2 exclusive things? rephrased it looks like "I need to be able to reproduce the random number sequence generated" and then "I don’t like being able to reproduce the random number sequence generated". Can you clear up what you are asking here? I guess the bottom line the way the question stands is that you _need_ a known seed to reproduce the random sequence... Thanks! -Waswas
In Section
Seekers of Perl Wisdom
|
|