Sunday, September 30, 2012

You are given n dice. Each die has m sides i.e has values from 1 to m. Given m,n,x calculate the probability that the sum of all the dice is greater than or equal to x.

Example  n=4 m=2 x=8 ans: 1/16=0.0625  n=2 m=6 x=3 ans:35/36=0.972

1 comment:

Anonymous said...

please paste the method .