I'm trying to find a general method for working out the probability of a score from rolling several dice with varying sides.
For example, the probability of getting a result of 12 when rolling two six-sided dice and three 100-sided dice.
I'm a programmer looking to use this formula for a function, so please be gentle. Thanks!