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