Question: Python Help! In short, given a 6 sided die, someone wants to know which of the following had the greater chance of occuring. 1) At

Python Help!

In short, given a 6 sided die, someone wants to know which of the following had the greater chance of occuring. 1) At least one 6 occurs when six dice are rolled 2) At least two sixes occur when 12 dice are rolled 3) At least three sixes occur when 18 dice are rolled. We want to write a program to simulate doing this many time over.

I have the program written and running but it is counting the sixes for the entire trial. for example if the user imputs 15 trials it will give stats on how many 6's were rolled in the 90 rolls of the dice for the first senario, then the 180 rolls for the second, ect. I think I need it to keep track of each seperate trial run, so for the above example, seperate stats for 6 dice rolled, 15 times and report on how many of the individual trials a six occured the specified number of times. I would then need to put this into one statistic.

I am really stuck on how to do this in code, any help would be appreciated!

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!