Question: imulate rolling an 8 sided die 100 times and average the 100 values. The numbers on the sides of the die are 0, 1, 2,

imulate rolling an 8 sided die 100 times and average the 100 values. The numbers on the sides of the die are 0, 1, 2, 4, 4, 6, 7, and 8. Yes. There is no 5 and the 4 appears twice. roll.n.times should be the name of the vector that holds your 100 rolls. average.of.rolls should be the vector with one element that represents the average of the 100 rolls. Hint: The division for the average should not be in the for loop

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