/PRNG

:seedling: Implementation of the Park Miller pseudo-random number generator in TypeScript

Primary LanguageTypeScriptMIT LicenseMIT

🌱 Pseudo-Random Number Generator written in TypeScript

License: MIT

Implementation of the Park Miller (1988) "minimal standard" linear congruential pseudo-random number generator.

PRNG Documentation

Example:

import {PRNG} from 'prng';

const rng = new PRNG(280583);
console.log(rng.random());