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