Cody

Problem 174. Roll the Dice!

Description

Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice.

Example

   [x1,x2] = rollDice();
   x1 = 5;
   x2 = 2;

Solution Stats

42.14% Correct | 57.86% Incorrect
Last solution submitted on Dec 13, 2017

Problem Comments

Solution Comments

Win prizes and improve your MATLAB skills

Play today