Question: Using matlab Section 2: Matrices and Built-in Matlab Functions 4. (25 pts) Dice Simulation and Craps Game Craps is a dice game in which the
Section 2: Matrices and Built-in Matlab Functions 4. (25 pts) Dice Simulation and Craps Game Craps is a dice game in which the players make wagers on the outcome of the roll, or a series of rolls, of a pair (2) of dice (Ref: ht tps:/len.wikipedia.org/wiki/Craps) se Matlab to develop a program to do the following: a. Create a random number generator to simulate the roll of a dice (from 1 to 6). b. Create 2 dice rolls from part (a) (ex. Dl, D2) 500 times. c. Add the results for each roll of the pair of dice to get a total. d. Plot a hitogram of the number of occurrences for each possible value between 2-12. Label the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
