fork(2) download
  1. #include <iostream>
  2. #include <random>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. std::random_device rd;
  8. for(int i = 0; i < 10; ++i)
  9. cout << rd() << endl;
  10. }
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
361243035
1796874786
1499798526
517372295
3016536522
2413595756
3000071402
166609827
437659251
633950670