Advertisement
libchm

I know this is fucking retarded

Nov 4th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <sys/time.h>
  3.  
  4. long int random(void);
  5.  
  6. int main(int argc, const char * argv[])
  7. {  
  8.     int i;
  9.     for(i = 0; i < 10; i++){
  10.         printf("Some look bs. here is the %d th, random nr. %ld\n", i, random());
  11.     }
  12.     return 0;
  13. }
  14.  
  15. long int random(void)
  16. {
  17.     int time1, time2, time3;
  18.     long int r;
  19.     time1 = clock_getttime();
  20.     time2 = gettimeofday();
  21.     time3 = clock_getttime();
  22.     r = (((time1 * time2)/time3) * (time1 + time2 + time3));
  23.     return r;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement