Talk:Dice

I added some things here and re-arranged things a bit - hope that's OK

Dec 18, 2013: I added a 2d10 and 1d1000 table. - nerdwerds

Wouldn't it be easier and cleaner to do:

1,1 1,2
 * 1d2

2,[1d2] 1,3
 * 1d3

...

99,[1d99] 1,100
 * 1d100

instead of what we do now, or is there a reason not to do that? GhostInTheMachine (talk) 14:29, 20 January 2015 (PST)
 * There might be a difference in speed, but I don't know if it would be significant. ToB (talk) 00:43, 21 January 2015 (PST)

TO-DO 2015-09: sudden clarity flash: all users really care about is which die or dice combo they need to produce the desired numeric (or textual) range in their generator. So this particular page doesn’t really need sample output, so much as it should list the range of each die or combo! (I’d fix this myself, but right now am in too deep with other stuff.) --MikeyD (talk) 15:24, 4 September 2015 (PDT)

how does the math work to calculate the weights?
http://www.ohrt.com/odds/binomial.php
 * here is binomial coefficient calculator:


 * http://mathforum.org/library/drmath/sets/select/dm_dice.html
 * http://mathforum.org/library/drmath/view/52207.html

Now the coefficient of z^s in this will be given by:

(s-n)/x SUM (-1)^k * C(n,k) * C(s-x*k-1,n-1) k=0

This is the formula you seek.

(x is sides, n is number of dice, s is any given sum of all the die results)

For example, if x = 6, n = 4, and s = 13, then the coefficient of z^13 is:

(13-4)/6      SUM   (-1)^k * C(4,k) * C(12-4*k,3) k=0

https://math.stackexchange.com/questions/1426040/formula-for-probability-of-specific-die-outcomes