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

23062 Solutions

10810 Solvers

Last Solution submitted on Jul 29, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Group


Problem Recent Solvers10810

Community Treasure Hunt

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

Start Hunting!