fork download
  1. #include <iostream>
  2. #include <random>
  3. #include <algorithm>
  4. #include <functional>
  5. #include <iterator>
  6. using namespace std;
  7.  
  8. int main() {
  9. generate_n(ostream_iterator<int>(cout, " "), 10, bind(uniform_int_distribution<>(0, 10), default_random_engine{}));
  10. return 0;
  11. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
0 1 8 5 5 2 0 7 7 10