Module:Dice: Difference between revisions

update to v1.0.0
upgrade to v1.0.1: fix variance being negative for subtracted dice
Line 103: Line 103:
         end
         end


         return quantity * sum
         return math.abs(quantity) * sum
     end)
     end)
end
end