Skip to content

Instantly share code, notes, and snippets.

@josher19
Created October 26, 2012 10:33
Show Gist options
  • Save josher19/3958074 to your computer and use it in GitHub Desktop.
Save josher19/3958074 to your computer and use it in GitHub Desktop.
Semi-random number
function randomFrom(s0) {
return (1103515245 * s0 + 12345) % Math.pow(2,32);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment