Fedora.Pirate
First Post
Hey all, Sorry if this is in the wrong place and/or incorrectly formatted; but I'm I'm new so I hope you all can cut me a little slack. I am currently eneavouring to create a spreadsheet in excel to display the probability of any availible roll when you roll n dice of x sides. I've managed to get that working with rolls totaling up to 100.
My current endeavour is to set it up so that I may see the probabilities for a roll of n dice with x sides when keeping only the highest result. With the eventual goal of being able to roll n dice of x sides keeping the highest y results; and then maybe another where the dice explode (I've already got this working with a single dice).
However at preasent I'm stuck finding a formula for rolling n dice with x sides and keep the highest reasult. I've managed to get formula for n = 1 (probability = 1 / x) through to n = 5 as shown below; where v = a value found on a dice (so when rolling 2d6 and keeping the highest result, the odds of getting a 2 are 3/36 = 1/12)
n=2
v * 2 -1
n=3
(v * 2 -1) * (v -1) + v^2
n=4
(v * 2 -1) * ((v -1)^2 + v^2)
n=5
(v * 2 -1) * ((v -1)^2 + v^2) * (v - 1) + v^4
What i am currently trying to figure out and making no progress with is a unified formula/method so a new one doesn't have to be figured out for each new value of n. I'm sure one must exist as various patterns emerge throughout this experiment yet I cannot for the life of me see it.
Any help at all would be appreciated.
Furthermore, any advice on my future eneavours, or answers to the future questions that I am bound to ask will also be appreciated.
My current endeavour is to set it up so that I may see the probabilities for a roll of n dice with x sides when keeping only the highest result. With the eventual goal of being able to roll n dice of x sides keeping the highest y results; and then maybe another where the dice explode (I've already got this working with a single dice).
However at preasent I'm stuck finding a formula for rolling n dice with x sides and keep the highest reasult. I've managed to get formula for n = 1 (probability = 1 / x) through to n = 5 as shown below; where v = a value found on a dice (so when rolling 2d6 and keeping the highest result, the odds of getting a 2 are 3/36 = 1/12)
n=2
v * 2 -1
n=3
(v * 2 -1) * (v -1) + v^2
n=4
(v * 2 -1) * ((v -1)^2 + v^2)
n=5
(v * 2 -1) * ((v -1)^2 + v^2) * (v - 1) + v^4
What i am currently trying to figure out and making no progress with is a unified formula/method so a new one doesn't have to be figured out for each new value of n. I'm sure one must exist as various patterns emerge throughout this experiment yet I cannot for the life of me see it.
Any help at all would be appreciated.
Furthermore, any advice on my future eneavours, or answers to the future questions that I am bound to ask will also be appreciated.