Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice.
[x1,x2] = rollDice(); x1 = 5; x2 = 2;
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry PiLearn more
Opportunities for recent engineering grads.Apply Today
New to MATLAB?Learn MATLAB today!
Play games and win prizes!Learn more