How to find the probability of a score from multiple dice with varying sides 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!

I found a solution to this specific problem by treating each dice roll as a one-dimensional array containing the probability distribution, and then convolving the arrays into a single distribution.
I've uploaded a demonstration here.
