Question: 6. Dice Simulator Create a JavaFX application that simulates rolling a pair of dice. When the user clicks a button, the application should generate two

6. Dice Simulator Create a JavaFX application that simulates rolling a pair of dice. When the user clicks a button, the application should generate two random numbers, each in the range of 1 through 6, to represent the value of the dice. Use ImageView controls to display the dice. (In the Student Sample Programs, you will find six images named Die1.png, Die2.png, Die. png, Die4.png, Die5.png, and Die6.png that you can use in the Imageview controls.) 6. Dice Simulator Create a JavaFX application that simulates rolling a pair of dice. When the user clicks a button, the application should generate two random numbers, each in the range of 1 through 6, to represent the value of the dice. Use ImageView controls to display the dice. (In the Student Sample Programs, you will find six images named Die1.png, Die2.png, Die. png, Die4.png, Die5.png, and Die6.png that you can use in the Imageview controls.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
