Blockland Forums > Modification Help
Random generator not compatible with torque?
ThinkInvisible:
So how would I reduce that without completely ruining the whole thing?
Kalphiter:
--- Quote from: ThinkInvisible on June 20, 2012, 11:53:25 AM ---So how would I reduce that without completely ruining the whole thing?
--- End quote ---
Lol, Torque.
Ipquarx:
--- Quote from: ThinkInvisible on June 20, 2012, 10:37:01 AM ---getRandom() can't be controlled at all.
--- End quote ---
What
What
yes
yes it can
setRandomSeed(%Seed);
getRandomSeed();
And also it's failing because the numbers you're using are too big for torque.
ThinkInvisible:
--- Quote from: Ipquarx on June 20, 2012, 12:10:32 PM ----snip-
--- End quote ---
...Well, I didn't know THAT.
But still, I should probably have some other variations.
Seems oddly uniform. Keeps returning something like .9 .8 .7 .6 .5 .4 .3 .2 .1 .0 .9 .8 etc. if both X and Y increment steadily.
ThinkInvisible:
RNG is now working but it's generating one-dimensional noise while the rest of the script handles two-dimensional.
If I simply add %x and %y together it makes this weird checkerboard pattern.
What do?