Question: Dice Roll: The program simulates a two dice rolls by generating two random integers between 1 and 6. Then create a total value by adding
Dice Roll: The program simulates a two dice rolls by generating two random integers between 1 and 6. Then create a total value by adding these. The user is then prompted to guess whether the dice value is even or odd. If the user guess matches the evenness/oddness of the dice, a victory message is displayed, otherwise, a loss message is displayed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
