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
Problem Comments
-
20 Comments
Show
17 older comments
Niranjan S Pattanshetti
on 7 Nov 2021
nice!
Shreyas
on 11 Sep 2024
Easy !
Estrella
on 17 Dec 2024
Easy!
Solution Comments
Show commentsGroup

Big Numbers
- 11 Problems
- 38 Finishers
- How to add?
- How to subtract?
- How to multiply?
- Infinite precision division
- Sum of big primes without primes
- Sums of cubes and squares of sums
- Divisible by 13
- Hexagonal numbers on a spiral matrix
- Project Euler: Problem 16, Sums of Digits of Powers of Two
- Large Sum (inspired by Project Euler 13)
- It's going down. We're finding simbers!
Problem Recent Solvers10436
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!