Skip to content

Creates a function that allows you to generate pseudo-random numbers (uses @rojo2/linear-congruential-generator)

Notifications You must be signed in to change notification settings

rojo2/create-random-function

Repository files navigation

Create Random Function

Travis CI

import createRandomFunction from "@rojo2/create-random-function";

const random = createRandomFunction();
random() // returns a random value

const initialValue = 2;
const random2 = createRandomFunction(initialValue);
random() !== random2()

NOTE: You should never use this random values for cryptography.

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

About

Creates a function that allows you to generate pseudo-random numbers (uses @rojo2/linear-congruential-generator)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published