park-miller
v2.0.0
Published
Park-Miller pseudorandom number generator (PRNG)
Downloads
6,218
Maintainers
Readme
park-miller
Park-Miller pseudorandom number generator (PRNG)
Install
$ npm install park-miller
Usage
import ParkMiller from 'park-miller';
const random = new ParkMiller(10);
random.integer();
//=> 2027521326
API
const random = new ParkMiller(seed)
seed
Type: integer
random.integer()
random.integerInRange(min, max)
random.float()
random.floatInRange(min, max)
random.boolean()
Related
- randoma - User-friendly pseudorandom number generator (PRNG)