GetScoreDistribution: Get the distribution for a total score after rolling XdY dice...

Description Usage Arguments Value Examples

Description

Get the distribution for a total score after rolling XdY dice and summing the results.

Usage

1
2
GetScoreDistribution(X, Y = 10, dice.rolls = 10000, plot.histogram = TRUE,
  theoretical = FALSE)

Arguments

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)

Value

A list with either simulated or an exhaustive account of dice roll combinations scores.

Examples

1
2

rubenbanuelos/gameDesignTools documentation built on May 22, 2019, 4:42 p.m.