Last active
July 25, 2019 12:44
-
-
Save supereggbert/f6cd1d7162594a22d750c481be025999 to your computer and use it in GitHub Desktop.
pseudorandom
This file contains 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
var seed=Math.random() | |
var random3=function(x,y,z){ | |
var f=(Math.abs(x)+1e4)*(Math.abs(y)+2e4)*(Math.abs(z)+3e4); | |
var a=(f%seed)/seed; | |
var b=(f%a)/a; | |
return b; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment