Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
3-liner: math solution in Creative category for Probably Dice by przemyslaw.daniel
from scipy.special import binom as b
probability=lambda n,s,p:sum((-1)**x*b(n, x)*\
b(p-s*x-1,n-1)for x in range((p-n)//s+1))/s**n
Nov. 27, 2017