Description Usage Arguments Value Examples
Get the distribution for a success/failure roll (White Wolf Style).
1 2 | GetSuccessesDistribution(X, Y = 10, success = 6, fail = 1,
dice.rolls = 10000, theoretical = FALSE, plot.histogram = TRUE)
|
X |
An integer, the amount of dice to be rolled. |
Y |
An integer, the number of sides the die has. (Default: 10) |
success |
An Integer, the minimum amount to be rolled to be considered a success. (Default: 6) |
fail |
An Integer, the maximum number than if rolled, gets substracted from the success count. (Default: 1) |
dice.rolls |
An Integer, the amount of dice rolls to be simulated in case of running an empyrical simulation. (Default: 10000) |
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) |
plot.histogram |
Boolean, whether or not to plot a histogram with the data obtained |
A list with either simulated or an exhaustive account of dice roll combinations success counts.
1 2 | GetSuccessesDistribution(5)
GetSuccessesDistribution(X = 10, Y = 6, plot.histogram = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.