1.5.1 • Published 5 years ago
nrng v1.5.1
NRNG
NRNG is not a random number generator.
Installation
NPM
npm i nrng
Usage
Node
import { NRNG } from 'nrng';
const nrng = new NRNG('my-seed');
let random = nrng.next();
Browser
<script src="https://unpkg.com/nrng"></script>
<script>
const nrng = new NRNG('my-seed');
let random = nrng.next();
</script>