fork(1) download
  1.  
  2. #include <stdlib.h>
  3.  
  4. int main(void)
  5. {
  6. printf("%d\n",rand());
  7. printf("%d\n",rand());
  8. printf("%d\n",rand());
  9. printf("%d\n",rand());
  10. printf("%d\n",rand());
  11. return 0;
  12. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
1804289383
846930886
1681692777
1714636915
1957747793