fork(2) download
  1. #include <fstream>
  2. #include <random>
  3. #include <iostream>
  4. using namespace std ;
  5.  
  6. int main()
  7. {
  8. mt19937_64 Generator(12187) ;
  9. mt19937_64 Generator2(12187) ;
  10. uniform_int_distribution<int> D1(1,100) ;
  11.  
  12. cout << D1(Generator) << " " ;
  13. cout << D1(Generator) << " " ;
  14. cout << D1(Generator) << endl ;
  15. cout << D1(Generator2) << " " << D1(Generator2) << " " << D1(Generator2) << endl ;
  16. }
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
4 48 12
12 48 4