Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <sys/time.h>
- long int random(void);
- int main(int argc, const char * argv[])
- {
- int i;
- for(i = 0; i < 10; i++){
- printf("Some look bs. here is the %d th, random nr. %ld\n", i, random());
- }
- return 0;
- }
- long int random(void)
- {
- int time1, time2, time3;
- long int r;
- time1 = clock_getttime();
- time2 = gettimeofday();
- time3 = clock_getttime();
- r = (((time1 * time2)/time3) * (time1 + time2 + time3));
- return r;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement