Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- int main()
- {
- int i;
- srand(time(NULL));
- for (i = 0; i < 3; i++)
- {
- cout << rand() % (9 + 1) << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement