Dice Roll Probability Question
조회 수: 17 (최근 30일)
이전 댓글 표시
New to MATLAB. Need help with this.
Given a dice with six numbers ({1, 2, 3, 4, 5, 6}), each number comes with the same probability when you roll it. Suppose you have such THREE dices and you simultaneously roll all of them to get the sum of those three output numbers. When the sum is 3 or 18, you win. Otherwise, you lose. You are so addicted to this game and will not stop until win it once (get 3 or 18 in one play). Let the random variable Y denote the number of plays when you stop playing. You have to repeat the game several times (1000) and plot the histogram of how many times did you tossed the three dice before you reached 3 or 18.
댓글 수: 1
Walter Roberson
2015년 9월 18일
See http://uk.mathworks.com/matlabcentral/answers/243882-3-dices-sum-that-gets-3-or-18 for an identical question.
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!