Created
November 13, 2018 12:26
-
-
Save thysultan/9d1141febf0abaa308c74793468be236 to your computer and use it in GitHub Desktop.
prng
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const prng = ((seed, size, value = seed % size) => () => ((value = value * 16807 % size - 1) - 1) / size)(4022871197, 2147483647) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment