Created
November 25, 2016 10:49
-
-
Save superhero/bfa4fd3dc8f708e3dce3def396f3e2d0 to your computer and use it in GitHub Desktop.
A seeded random generator
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
(seed) => | |
{ | |
const n = Math.sin(seed); | |
return n - Math.floor(n); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment