I am working on a project that needs to be able to calculate the probability of rolling a given value $k$ given a set of dice, not necessarily all the same size. So for instance, what is the distribution of rolls of a D2 and a D6?
An equivalent question, if this is any easier, is how can you take the mass function of one dice and combine it with the mass function of a second dice to calculate the mass function for the sum of their rolls?
Up to this point I have been using the combinatorics function at the bottom of the probability section of Wikipedia's article on dice, however I cannot see how to generalize this to different sized dice.
For D2+D6, you can only get 2 or 8 in one case each, probability 1/12. Other totals 3-7 you can attain two ways (for example 6=5+1 or 4+2), probability 2/12=1/6. A good check is the total over all the values is 1. The check is 2*(1/12)+(7-3+1)*(1/6)=1