Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^5: Predictable random sequence

by BrowserUk (Pope)
on Sep 17, 2013 at 15:32 UTC ( #1054475=note: print w/replies, xml ) Need Help??

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

Anyway, even if numbers are same, point was it's not documented in module .pod, so might change in the future/in the past.

If it does/did, it would not be a faithful implementation of the Mersenne twister.

UPD: seems second example same as yours.

It appears that the argument to rand is being ignored on both my windows installations but not on your linux install.

Which is intriguing as they should be using the same perl code. I don't have an explanation for that yet.

But, it you use it without an argument (ie. you retrieve just the 0-1 range random float and multiply it out yourself), you'll get the same results everywhere. That doesn't need to be documented because it is a fact of the design of the MT.

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://1054475]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2018-04-20 17:00 GMT
Find Nodes?
    Voting Booth?