Created
November 19, 2014 16:58
-
-
Save ecasilla/3a60a09e289b55dab9db to your computer and use it in GitHub Desktop.
Pure JS Random Function
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
| function random(m_w, m_z) { | |
| m_z = 36969 * (m_z & 65535) + (m_z >> 16); | |
| m_w = 18000 * (m_w & 65535) + (m_w >> 16); | |
| return (m_z << 16) + m_w; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment