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