fork(3) download
  1. #include <stdlib.h> /* rand */
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main ()
  6. {
  7. for (int i = 0 ; i< 10 ; i++) {
  8. cout << rand() << " ";
  9. }
  10. cout << rand();
  11.  
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
1804289383 846930886 1681692777 1714636915 1957747793 424238335 719885386 1649760492 596516649 1189641421 1025202362