How do you calculate the probability of rolling something with x 6-sided dice?
- Example 1: Rolling exactly one 6 with three 6-sided dice.
- Example 2: Rolling exactly two 6s with three 6-sided dice.
- Example 3: Rolling exactly five 6s with ten 6-sided dice.
Also, out of curiosity, what would a function look like if it also had the amount of sides of the die as a variable (so an n-sided die as opposed to a 6-sided one)?