Guest User

Untitled

a guest
May 25th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. int myrand();
  2.  
  3. int main (int argc, char *argv[])
  4. {
  5.  
  6. unsigned int seed = -1;
  7. int i;
  8.  
  9. srand(seed);
  10.  
  11. for(i = 0; i < 10; i++) printf("%d\n", myrand());
  12.  
  13. }
  14.  
  15. int myrand()
  16. {
  17. int x = rand() % 20;
  18. return x;
  19. }
Add Comment
Please, Sign In to add comment