Question: Write a program called DiceRoller. Your program will simulate a roll of two 6-sided dice using Java's Random object (not Math.random0). Your program should produce
Write a program called DiceRoller. Your program will simulate a roll of two 6-sided dice using Java's Random object (not Math.random0). Your program should produce 3 lines of output: 1. The value of the first die, a random [whole] number in the range 1-6, inclusive 2. The value of the second die, a random (whole] number in the range 1-6, inclusive 3. The sum of the values of the two dice For example, if the two dice are 3 and 5, the output would look like this: Make sure you use the java Random object as demonstrated in class (the grading script will be looking for it)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
