Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Re: Generating Repeatable Pseudorandom Sequences

by mp (Deacon)
on Sep 04, 2002 at 19:58 UTC ( #195186=note: print w/replies, xml ) Need Help??

in reply to Re: Generating Repeatable Pseudorandom Sequences
in thread Generating Repeatable Pseudorandom Sequences

Thank you. After reading your reply, I realized that I really just needed a random number generator that could be seeded and that would not interfere with the builtin rand(). I looked at Math::Random, but ended up settling on Math::Random::MT. I ran some tests of the shuffle algorithm (to check the distribution of the permutations it would produce) with it in place in the Fisher-Yates shuffle algorithm and a set of seeds that were sequential, and it did a good enough job for this application.
  • Comment on Re: Re: Generating Repeatable Pseudorandom Sequences

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://195186]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2023-02-01 22:23 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (14 votes). Check out past polls.