I'm no good with math homework, but add dice and monsters and suddenly my math skills increase exponentially!
I've been working on how to fix it, most of the time I just re-roll if the result does not fit, while fudging is not mathematical, scaling is, something I had to do for most of this...