Problem 44288. Throwing Dice - Will You Be Eaten By The Dragon?
Solution Stats
Problem Comments
-
10 Comments
Can someone clear up this 2 confusions i have about the problem.
The problem says i roll several dice of y sides.How many is that? so i just put a rand 100 or smth to see how many times i'll roll?
And second is since i know my dice have y sides how can the sum of the sides be x since x is random?
@Alex You roll x/y dice, each of which has y sides. Each die is rolled once. x is not random; instead, it's supplied to your function as an argument.
I was trying to calculate the probabilities of each point and add them up, but when I explained this problem to my son, I suddenly realized that due to symmetry, the problem became very simple.
Solution Comments
Show commentsProblem Recent Solvers132
Suggested Problems
-
Find state names that start with the letter N
1279 Solvers
-
How long do each of the stages of the rocket take to burn?
323 Solvers
-
Find my daddy long leg (No 's')
2456 Solvers
-
String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values
1714 Solvers
-
9824 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!