X: (chance to get X) * (chance to get 12-X) = Probability to achieve a total of 12 0:0.24*1.48=00.00 1:1.13*5.05=0.06 2:3.36*13.22=0.44 3:7.04*27.62=1.94 4:11.68*47.35=5.53 5:15.62*68.14=10.64 6:17.38*84.74=14.73 7:16.11*94.5=15.22 8:12.52*98.62=12.35 9:8.08*99.78=8.06 10:4.29*99.98=4.29 11:1.81*100=1.81 12:0.59*100=0.59
@TheGame Hmmm.. good question. The % come from the multiplication of the probability to get X (come from the roll of custom dices) and 12-X (come from the roll of custom dices too). (don't know if it is clear)
I asked the question on Stackoverflow while we were discussing and someone came up with pretty much all the code (and in a more fashioned way than I would have to):