Last active
January 4, 2016 06:48
-
-
Save lukasa1993/8583902 to your computer and use it in GitHub Desktop.
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
int a = 211; | |
int c = 0; | |
int m = 253;//2^8-3 | |
long wkgGenerator (long z) | |
{ | |
long m = 1 << 7; | |
return (z * a + c) % m; | |
} | |
float wyvetili (float zi) | |
{ | |
if (zi > 0 && zi <= 0.22) | |
return 21; | |
else if (zi > 0.22 && zi <= 0.39) | |
return 10; | |
else if (zi > 0.39) | |
return 18; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment