Guest User

Untitled

a guest
Jul 18th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. r1 = srand(GetTickCount());
  2. r2 = srand(GetTickCount());
  3. r2%=r1;
  4.  
  5. x = rand();
  6. y = rand();
  7. y += y>=x;
  8.  
  9. if (x>y)
  10. swap(x, y);
Add Comment
Please, Sign In to add comment