Question: Utilize Matlab to 4. Let us examine the random events of two dices now. (a) Find a way to generate random integers from 1 to
Utilize Matlab to

4. Let us examine the random events of two dices now. (a) Find a way to generate random integers from 1 to 6. (5 points) (b) Create two dice variables A and B; Assign random integers to them and add on them together. (5 points) (c) Write a for loop to cast dices for 500 times. During each cycle, record the sum of A and B into a vector x (x should be created at the beginning with 500 zeros). (10 points) (d) After running for 500 times, create a histogram of x with 11 bins and report which number is most likely to occur when you are casting two dices. (10 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
