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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!