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.
|
|---|