Problem 2289. サイコロを作ろう

1から6までの独立かつランダムな数値を返すような関数を作成しましょう。

例:

>> [x1,x2] = rollDice();

と入力すると

x1 = 5
x2 = 2

のような解を返します。

Solution Stats

41.65% Correct | 58.35% Incorrect
Last Solution submitted on Apr 16, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers344

Suggested Problems

More from this Author12

Community Treasure Hunt

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

Start Hunting!