Skip to content

rojo2/linear-congruential-generator

Repository files navigation

Linear Congruential Generator

Travis CI

import linearCongruentialGenerator, { MODULUS } from "@rojo2/linear-congruential-generator";

function createRandomFunction(initialValue = 0) {
  let value = initialValue;
  return function() {
    value = linearCongruentialGenerator(value);
    return value / MODULUS;
  }
}

Made with ❤️ by ROJO 2 (http://rojo2.com)

About

Linear Congruential Generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published