-
Notifications
You must be signed in to change notification settings - Fork 9
PRNG
Will Blanton edited this page Sep 13, 2019
·
1 revision
A simple pseudo random number generator!
Usage:
// set seed from integer:
PRNG.set_seed(42069);
// set seed from string:
PRNG.set_seed_from_string('hello');
// get a random integer between 0 - 2,147,483,647:
var random_int = PRNG.int();
// get a random float between 0 - 1:
var random_float = PRNG.float();
// get a random integer between 0 - 64:
random_int = PRNG.int_range(0, 64);
// get a random float between 0 - 64:
random_float = PRNG.float_range(0, 64);
For more info, please check out the API: http://01010111.com/zerolib/