-florian66-

aléa

Apr 19th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.15 KB | None | 0 0
  1. unsigned int seed=12347;
  2.  
  3. unsigned int random(int min, int max)
  4. {
  5. seed += seed % 5461;
  6. seed = seed * 5461;
  7.  
  8. return seed%(max + 1 - min) + min;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment