Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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]
[chacham]: i sent him a private message expressing my displeasure.
[1nickt]: chacham It was worse than 2-1 ! almost 4-1 !
[jdporter]: Dang. No good example of how to use IPC::Run's run() in its simplest mode?
[LanX]: him or her! ;)
[1nickt]: jdporter Maybe try IPC::Run3
[LanX]: Sandy Koufax is indeed rude. .. oO

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (15)
As of 2017-05-24 20:54 GMT
Find Nodes?
    Voting Booth?