I'll prefix this with - I'm not particularly great at Maths, so I might ask for an explanation of some of the answers. What I'm trying to do is convert this into something I can code.
I've got a distribution of probabilities for dice rolls that I've managed to generate for a D6 (6 sided) dice. These distributions cover 1-5 dice (1D6-5D6) and look something like the following:
[100.0000,83.3333,66.6667,50.0000,33.3333,16.6667,0.0000,0.0000.....]
[100.0000,100.0000,97.2222,91.6667,83.3333,72.2222,58.3333,41.6667.....]
These are cumulative probabilities. E.g. The probability I roll a 1 or more with 1D6 = 100%, the probability of a 2 with 1D6 = 83.3%.
What I want to do is calculate the probability of rolling an exact range (e.g. 3-5). I thought I'd figured this out for 1D6 using the following example:
p(rangeLower - 1) - p(rangeUpper) = p(2) - p(5) = 83.33% - 33.33%;
As soon as I tried to apply this to the range 1-6 for 1D6 however it all fell flat on it's face not giving 100%. I can't seem to figure out how to achieve this so was hoping someone might be able to give me a pointer?