Blockland Forums > Modification Help
getRandom returning different results on mac and pc
<< < (5/11) > >>
Ipquarx:

--- Quote from: Port on May 19, 2012, 02:38:06 PM ---You can't fix that.
--- End quote ---
Why do you say that? Is it because the seed is too big?
Port:

--- Quote from: Ipquarx on May 19, 2012, 03:56:25 PM ---Why do you say that? Is it because the seed is too big?

--- End quote ---

Either that or the engine uses slightly different algorithms on Windows in comparison to Mac due to the precision of available libraries or other things.

In any case, don't use a seed with a precision higher than 6.
Ipquarx:
No, it definetly uses the same algorithm.
And you mean don't use numbers that have more than 5 decimal places, or are >= 1 million?
Port:

--- Quote from: Ipquarx on May 19, 2012, 04:04:14 PM ---No, it definetly uses the same algorithm.
And you mean don't use numbers that have more than 5 decimal places, or are >= 1 million?

--- End quote ---

-999999 <= x >= 999999
-0.999999 <= x - floor(x) >= 0.999999
Treynolds416:
I think you mean

--- Quote from: Port on May 19, 2012, 04:11:13 PM ----999999 <= x <= 999999
-0.999999 <= x - floor(x) <= 0.999999

--- End quote ---
Navigation
Message Index
Next page
Previous page

Go to full version