Seeded random number generator.
Down to ~500 bytes when minified.
Down to ~260 bytes when gzipped.
var rng = require('./rng');
var rand = rng(1337);
rand.int(100); // 57
rand.float(); // 0.48787342294965175
rand.bool(); // false
rand.range(4, 12); // 10
rand.pick(['foo', 'bar', 'baz']); // 'baz'
Returns a RNG using the specified seed
.
Returns an integer within [0, max).
Returns a float within [0.0, 1.0).
Returns a boolean.
Returns an integer within [min, max).
Returns an element from the source.
Hiiii.....I need help..... I want last three digit number (RNG)...I HAVE PERVIOUS NUMBERS IF ANYONE CAN HELP ME.........PLEASE...... Waiting for the response.......