Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <random>
- #include <iostream>
- int main()
- {
- std::random_device rd;
- std::uniform_int_distribution<int> uid(0, 5);
- int temp;
- for(int i=0;i<30;i++)
- {
- temp = uid(rd);
- if (temp%2)
- std::cout<<temp<<std::endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement