how do I write a user input program that simulates a game of a rolling pair of dice. i can create/simulate
how do I write a user input program that simulates a game of a rolling pair of dice. i can create/simulate
rolling one die by choosing one of the integers values of 1, 2, 3, 4, 5, or 6 at randomly. As a hint I need to use Math.random which will perform the computation to select a random integer between 1 and 6.
then I need Assign the value to a variable to represent one of the dice that are being rolled. then Perform this operation twice then add the results in order to obtain the total roll. the program should output the number showing on each dice as well as the total roll.
For example:
The first die comes up 3
The second die comes up 5
Your total roll is 8