Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <random>
- using namespace std;
- int main()
- {
- random_device rd;
- mt19937 gen(rd());
- uniform_int_distribution<> dis(100000, 999999);
- for (int n = 0; n<10; ++n)
- cout << dis(gen) << '\n';
- cout << '\n';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement