how do I simulate a die throw? Can a random number generator between 1 to 6 do the same job?

 채택된 답변

James Tursa
James Tursa 2020년 9월 1일
편집: James Tursa 2020년 9월 1일

1 개 추천

doc randi
E.g., for a single throw you could use randi(6)

댓글 수: 2

Anmol Pardeshi
Anmol Pardeshi 2020년 9월 1일
so you are saying that random integer generator will work, correct?
James Tursa
James Tursa 2020년 9월 1일
Yes, you would use a random integer generator for this.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

John D'Errico
John D'Errico 2020년 9월 1일
편집: John D'Errico 2020년 9월 1일

0 개 추천

Why not? Remember that numbers are just symbols. It is how you choose to interpret those symbols that matters. If you want to associate a face of a die with the number 1, another face with the number 2, etc., why not? That is your choice.
A random integer generator such as randi generates equally probable numbers, if you want, from the set 1:6. And equiprobable is what a fair die would have as a property, right?
Mathematics is about symbols. It is too easy to get lost in the idea that mathematics is purely arithmetic.

카테고리

도움말 센터File Exchange에서 Random Number Generation에 대해 자세히 알아보기

질문:

2020년 9월 1일

편집:

2020년 9월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by