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

49.28% Correct | 50.72% Incorrect
Last Solution submitted on Mar 19, 2024

Problem Comments

Solution Comments

Show comments


Problem Recent Solvers9413

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!