Blockland Forums > Modification Help
getRandom returning different results on mac and pc
Ipquarx:
For some strange reason, a mac is returning different results for getRandom than on a PC.
This was what the seed was set to:
12314108575108575847526104526 74907490747475251113186867577 11610411784271221175124112075 6767676774877366
Now i know it's huge, but why does it return different results? How do I prevent this from happening?
Daenth:
--- Quote from: Ipquarx on May 18, 2012, 06:32:16 PM ---For some strange reason, a mac is returning different results for getRandom than on a PC.
This was what the seed was set to:
12314108575108575847526104526 74907490747475251113186867577 11610411784271221175124112075 6767676774877366
Now i know it's huge, but why does it return different results? How do I prevent this from happening?
--- End quote ---
Isn't that what it's supposed to do?... There are no arguments for a seed in getRandom.
I'll assume you meant getRandomSeed, which doesn't need any arguments.
Ipquarx:
Daenth, the random number generator uses a seed. That seed can be set with setRandomSeed.
That is the seed that was used.
Daenth:
--- Quote from: Ipquarx on May 18, 2012, 07:10:29 PM ---Daenth, the random number generator uses a seed. That seed can be set with setRandomSeed.
That is the seed that was used.
--- End quote ---
Ah, my bad. I did a quick skim over the functions guide and didn't catch that.
Electrk:
--- Quote from: Badspot ---I know it sucks but you signed on for this bullstuff when you bought a macintosh.
--- End quote ---