Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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.


Comment on Re^5: Predictable random sequence

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (23)
As of 2014-04-17 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (453 votes), past polls