fork download
  1. #include <iostream>
  2. using namespace std;
  3. #include <boost/random.hpp>
  4.  
  5.  
  6. int main() {
  7. boost::random::mt19937 rng;
  8. boost::random::uniform_int_distribution<> dist(0, 2147483646);
  9.  
  10. int random_number = dist(rng);
  11.  
  12. std::cout << random_number << std::endl;
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 5304KB
stdin
Standard input is empty
stdout
1749605806