06-19-2012, 11:56 AM
The time function t() and updateSeed() work together - you only need those if you want to re-seed.
randomBase gives you a number from 0-255 (very quickly)
randomBin (with an awful name. Should probably be randomLimit) gives you 0-n
You can probably see it's trivial to do other ranges.
10-20 would be randomBin(10)+10 for example.
randomBase gives you a number from 0-255 (very quickly)
randomBin (with an awful name. Should probably be randomLimit) gives you 0-n
You can probably see it's trivial to do other ranges.
10-20 would be randomBin(10)+10 for example.