Write a MATLAB code that simulates a throw of a die 10 times…

Write a MATLAB code that simulates a throw of a die 10 times. You must use a loop and condition(s). You are only allowed to use “rand”. The rand function without parentheses returns a random scalar drawn from the uniform distribution in the interval (0, 1).