Description Usage Arguments Value Examples
Get the distribution for a total score after rolling XdY dice and summing the results.
1 2 | GetScoreDistribution(X, Y = 10, dice.rolls = 10000, plot.histogram = TRUE,
theoretical = FALSE)
|
X |
An integer, the amount of dice to be rolled. |
Y |
An ingeger, the number of sides the die has. (Default: 10) |
dice.rolls |
An Integer, the amount of dice rolls to be simulated in case of running an empyrical simulation. (Default: 10000) |
plot.histogram |
Boolean, whether or not to plot a histogram with the data obtained |
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) |
A list with either simulated or an exhaustive account of dice roll combinations scores.
1 2 | GetScoreDistribution(5)
GetScoreDistribution(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.