uint-rng
v1.2.0
Published
A tiny isomorphic Random Number Generator for generating 8/16/32-bits unsigned integers.
Downloads
4,616
Maintainers
Readme
Uint RNG
A tiny isomorphic Random Number Generator for generating 1/8/16/32/64-bits unsigned integers.
Install
npm install --save uint-rng
Usage
import RNG from 'uint-rng';
RNG.get1 (); // => 0
RNG.get8 (); // => 72
RNG.get16 (); // => 23291
RNG.get32 (); // => 1129029
RNG.get64 (); // => 16020485623009486818n
License
MIT © Fabio Spampinato