Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^4: Predictable random sequence

by vsespb (Hermit)
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.


Comment on Re^4: Predictable random sequence
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2014-08-23 00:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (168 votes), past polls