I hereby claim:
- I am steve9001 on github.
- I am steve9 (https://keybase.io/steve9) on keybase.
- I have a public key ASCJ_yDjjJIrZZlw24lUs5EzTLcck8paPeHQGHvcSkdu6Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/** | |
* Creates a pseudo-random value generator. The seed must be an integer. | |
* | |
* Uses an optimized version of the Park-Miller PRNG. | |
* http://www.firstpr.com.au/dsp/rand31/ | |
*/ | |
function Random(seed) { | |
this._seed = seed % 2147483647; | |
if (this._seed <= 0) this._seed += 2147483646; | |
} |