Thread replies: 11
Thread images: 6
Anonymous
My warhammer program
2016-01-11 21:44:12 Post No. 44715084
[Report]
Image search:
[Google]
My warhammer program
Anonymous
2016-01-11 21:44:12
Post No. 44715084
[Report]
Since /sci/ couldn't help me, I figured I'd ask the one other place that might be able to help me with dice.
Simply put, I am trying to write a program that can give me the probabilities when rolling any number of arbitrarily-sided dice. So what's the likelyhood of rolling 10+ on 3d6 versus 7+ on 3d3 versus 14+ on 4d5
Problem is, I'm having trouble with the generating function.
To find the probabilities of rolling any number on the dice, you of course can count up the number of ways to get that number, and divide by the total number of dice possibilites, so there's only 1 way to get a 2 when rolling 2d6, and there are 36 combinations (6^2), so the probability of rolling 2 is 1/36.
But with more than 2 dice it gets impossible to simply list out the possible combinations. I've tried using the generating function shown here
http://www.wikihow.com/Calculate-Multiple-Dice-Probabilities
But I don't understand how the function works