Question: Write aroll()function that simulates rolling a six-sided die by returning a random integer between 1 and 6 (inclusive). Use this function to write a programcountrolls.pythat
Write aroll()function that simulates rolling a six-sided die by returning
a random integer between 1 and 6 (inclusive). Use this function to
write a programcountrolls.pythat asks the user for a number of trials and then
simulates rolling a six-sided die that many times. Print the number of times
each value from 1 to 6 appears.
Does your program appear to be random?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
