Question: In this problem you will write a script to model the rolling of three six-sided fair dice and to determine some statistics. The three dice

 In this problem you will write a script to model the

In this problem you will write a script to model the rolling of three six-sided fair dice and to determine some statistics. The three dice are to be rolled 1000 times. (a) Generate a 1000 x 3 matrix of random integers in the inclusive range from 1 to 6 and assign the matrix to variable rolls. This matrix stores the outcomes of the 1000 rolls. (b) Determine the number of times that a \"triple three" was rolled, i.e. when each of the three dice landed on a 3. Assign the number of times that a "triple three" was rolled to variable trips. (c) Determine the number 01 times that a "Pares" was rolled, i.e. when each of three dice landed on an even number. Assign the number of times that a "Pares" was rolled to variable Fares. (d) Determine the number of rolls of the three dice that resulted in the total equal to that of the first roll, and assign this number to variable 0'. {9) Create a matrix E consisting of the rows of matrix rolls that have respective totals equal to that of the first roll oi the three dice

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 Mathematics Questions!