fork(2) download
  1. #include <iostream>
  2. #include <random>
  3.  
  4. using namespace std;
  5.  
  6.  
  7. int main(int argc, const char * argv[])
  8. {
  9. std::default_random_engine u;
  10. std::uniform_int_distribution<> d(-100000,100000);
  11. for(int i = 0; i < 10; ++i)
  12. cout << d(u) << endl;
  13.  
  14. }
  15.  
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
-99999
-73692
51126
-8267
6557
-56207
-90591
35778
35864
86945