Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^4: Predictable random sequence

by vsespb (Chaplain)
on Sep 18, 2013 at 15:38 UTC ( #1054684=note: print w/replies, xml ) Need Help??

in reply to Re^3: Predictable random sequence
in thread Predictable random sequence

It does, else it wouldn't be the Mersenne Twister.
Which one?
here are at least two common variants of the algorithm, differing only in the size of the Mersenne primes used. The newer and more commonly used one is the Mersenne Twister MT19937, with 32-bit word length. There is also a variant with 64-bit word length, MT19937-64, which generates a different sequence.

Replies are listed 'Best First'.
Re^5: Predictable random sequence
by BrowserUk (Pope) on Sep 18, 2013 at 15:59 UTC
    Which one?

    The one used by Math::Random::MT :) (Specifically, the version documented in the source code for the module.)

    There are actually several variants of the MT, but the module only implements one of them, and it (the module) therefore produces the same sequences everywhere it compiles, regardless of whether it is compiled on a 32-bit or 64-bit platform; or what the underlying OS is. That is its main strength for simulation work.

    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1054684]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2018-01-23 04:48 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (238 votes). Check out past polls.