Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <time.h>
- #include <random>
- using namespace std;
- int main()
- {
- srand(time(NULL));
- string input;
- cin >> input;
- int value = rand() % 6 + 1;
- if (input == "Throw")
- {
- cout << value;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement