| Blockland Forums > Modification Help |
| getRandom returning different results on mac and pc |
| << < (6/11) > >> |
| Port:
--- Quote from: Treynolds416 on May 19, 2012, 04:13:27 PM ---I think you mean --- End quote --- Yes. |
| Ipquarx:
--- Quote from: Port on May 19, 2012, 04:11:13 PM ----999999 <= x <= 999999 -0.999999 <= x - floor(x) <= 0.999999 --- End quote --- I assume that's what you meant as the acceptable range. Allright, somewhat dissapointing, but there's still 999,998,000,001 possible seeds then, right? >.> |
| Ipquarx:
Sorry for the double post, but I tried what you said, and tried with decimal places, but doing this in the console: setRandomSeed(68293.4945); echo(getRandomSeed()); outputs 68293, no decimal place. |
| Slicks555:
Psh, reasons like this are why I always write my add-ons in C++ or Ruby or something then send/receive data to it instead of writing the data functions in Torque. |
| Ipquarx:
--- Quote from: Slicks555 on May 19, 2012, 09:51:37 PM ---Psh, reasons like this are why I always write my add-ons in C++ or Ruby or something then send/receive data to it instead of writing the data functions in Torque. --- End quote --- Except that's slow and off topic. Can someone please tell me why they return different results? |
| Navigation |
| Message Index |
| Next page |
| Previous page |