Blockland Forums > Modification Help
Bullet Spread
phflack:
--- Quote from: Extrude on September 21, 2011, 08:15:51 AM ---It has about a 1 in 99999999 x pi chance to repeat itself.
--- End quote ---
so getRandom() wouldn't give 0 or 1 by itself? it sure seems like it does
and i know for sure that it keeps having the same spread every so often
Extrude:
You are completely wrong.
phflack:
interesting, it is between 0 and 1, and yet it still produces patterns
so overall,
--- Quote from: Extrude on September 21, 2011, 04:43:55 PM ---You are completely wrong.
--- End quote ---
about me being completely wrong
the same formations keep coming up over and over
Extrude:
I thought you were the one who knew something about scripting. It's between 0 and 1 including all the stuff in-between probably starting at 00001.
Amade:
--- Quote from: phflack on September 21, 2011, 05:01:30 PM ---...
--- End quote ---
No, you are wrong. It's possible you're using a weird random seed that will produce the same numbers in a pattern, but this will almost never occur.
--- Quote from: phflack on September 21, 2011, 04:06:45 PM ---so getRandom() wouldn't give 0 or 1 by itself? it sure seems like it does
--- End quote ---
--- Code: ---==> for(%i = 0; %i < 10; %i++){echo(getRandom());}
0.902336
0.556847
0.922807
0.6125
0.281929
0.385547
0.882077
0.0635692
0.40794
0.247588
--- End code ---
It's just as likely to return 0 or 1 as 0.902336.