In this problem you will generate a MATLAB script simulating a game between three people
each rolling a die and determining which die has the highest value.
Your script will need to start with the following three lines of code:
clear;
rng(2)
Dice = randi(6,1000,3);
The 2-D array Dice has the results of 1000 trials of rolling 3 dice (column 1 is die 1, column 2 is
die 2, and column 3 is die 3). You can use MATLAB's help to further understand the randi
function. For this problem, use a REPETITION STRUCTURE to determine the number of
trials in which die 1 had the greatest value, die 2 had the greatest value and die 3 had the highest
value. You should also determine how many times there was a tie for the greatest value. The tie
for the greatest value could be a two way tie (die 1 = die 2, die 1 = die 3 or die 2 = die 3) or a
three way tie (die 1 = die 2 = die 3). Your program should output using the fprintf function the
number of trials in which die 1 was the max, die 2 was the max, die 3 was the max, and there
was a tie for the max.