Blockland Forums > Modification Help

getRandom returning different results on mac and pc

Pages: << < (10/11) > >>

Ipquarx:

I realized that, so i said AVOID.

Port:

You cannot fix, prevent or avoid (or whatever fancy word you can find) this problem. Although, you could read the post I quoted many times in replies to your posts which contained information on another way you could achieve similar functionality without this problem.

Ipquarx:

Okay.

The reason I don't want to use TCP objects is because it's a function, and it needs to return the output from the function directly, not from a separate object. That wouldn't work for my purposes.

But I will take the advice of making my own generator.

Slicks555:


--- Quote from: Ipquarx on May 20, 2012, 12:12:31 PM ---But I will take the advice of making my own generator.

--- End quote ---

I really don't see the purpose of needing non-random numbers from a PRNG. I mean, I get that sometimes you want to be able to re-generate the same values but that should still work on Windows and Mac, just with different values for both.

Port:


--- Quote from: Slicks555 on May 20, 2012, 01:32:23 PM ---I really don't see the purpose of needing non-random numbers from a PRNG. I mean, I get that sometimes you want to be able to re-generate the same values but that should still work on Windows and Mac, just with different values for both.

--- End quote ---

For one example of how non-random values can be useful, research Minecraft's world generation.

Pages: << < (10/11) > >>

Go to full version