Description Usage Arguments Value Examples
Get the odds of rolling XdY dice and not beating a given score.
1 | GetOddsXdYLowerThan(X, odds, Y = 10, theoretical = FALSE, Z = 10000)
|
X |
An integer, the amount of dice to be rolled. |
Y |
An integer, the number of sides the die has. (Default: 10) |
theoretical |
Boolean, whether or not to use an ideal approach. Warning: An ideal approach can be very resource intensive for values of X and/or Y larger than 8. (Default: FALSE) |
score.odds |
An integer, the score not to beat. |
dice.rolls |
An Integer, the amount of dice rolls to be simulated in case of running an empyrical simulation. (Default: 10000) |
An integer with the probability of the score given being achieved or beaten expressed as a percentage.
1 2 | GetOddsXdYLowerThan(5, score.odds = 7)
GetOddsXdYLowerThan(X = 10, Y = 6, score.odds = 50)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.