1.0.3 • Published 6 years ago

@rojo2/create-random-function v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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 :heart: by ROJO 2 (http://rojo2.com)