Naive question:
Do you really have to take this into account?
Aren't Resistances almost always below minimum damage?
If that's true, then you can do the simpler: avg damage - resistance
OTOH, a quick and dirty simplification would be to have a minimum and maximum damage for each type of roll, and assume they have a uniform distribution.
That's much more easier to calculate.
I mean, you want to detect outliers, so a little aproximation will not harm the process. With care, of course.
Do you really have to take this into account?
Aren't Resistances almost always below minimum damage?
If that's true, then you can do the simpler: avg damage - resistance
OTOH, a quick and dirty simplification would be to have a minimum and maximum damage for each type of roll, and assume they have a uniform distribution.
That's much more easier to calculate.
I mean, you want to detect outliers, so a little aproximation will not harm the process. With care, of course.