Question: Write a script to simulate the rolling of two dice. The script should use Math. random to roll the first die and again to roll
Write a script to simulate the rolling of two dice. The script should use Math. random to roll the first die and again to roll the second die. The product of the two values should then be calculated and displayed. Save it as question2.html
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
