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 (Patriarch) 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.