Advertisement
pouar

devrandom.c

Dec 7th, 2015
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. #include <unistd.h>
  2.  
  3. char rand()
  4. {
  5.     return 7; // chosen by rolling 2 dice, guaranteed to be random
  6. }
  7.  
  8. void main()
  9. {
  10.     while(1)
  11.         write(1,rand,1); // avoids the overhead of printf, therefore faster
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement