Problem 174. Roll the Dice!

Created by @bmtran

Description

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

Example

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

Tags

Problem Group

388 solvers submitted 1088 solutions (2.8 solutions/solver).

Problem Comments

Solution Comments