Created
November 9, 2017 17:55
-
-
Save iomonad/d02b52320f45d9f27379e8dfdcc97167 to your computer and use it in GitHub Desktop.
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
int my_rand(void) | |
{ | |
static int x = 42; | |
return ((x = x * 214013 + 2531011) >> 16) & 0x7FFF; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment