Chapter 10: Problem 1
a) Write a program that generates and prints out two random numbers between 1 and 6 , to simulate the rolling of two dice. b) Modify your program to simulate the rolling of two dice a million times and count the number of times you get a double six. Divide by a million to get the fraction of times you get a double six. You should get something close to, though probably not exactly equal to, \(\frac{1}{36}\).
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.