Modify your repstats.html page so that, in addition to recording the number of doubles, it also counts
Question:
Modify your repstats.html page so that, in addition to recording the number of doubles, it also counts the number of sevens and the number of twos obtained. This will require adding two counters to the RollRepeatedly function and modifying the code to display these additional counters when the loop terminates.
If you roll the dice a large number of times, roughly 1/6th of the rolls should equal 7 and 1/36th of the rolls should equal 2. Conduct several experiments with your page to verify this outcome. Are the counts more consistent as you increase the number of rolls?
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: