GetSuccessesDistribution: Get the distribution for a success/failure roll (White Wolf...

Description Usage Arguments Value Examples

Description

Get the distribution for a success/failure roll (White Wolf Style).

Usage

1
2
GetSuccessesDistribution(X, Y = 10, success = 6, fail = 1,
  dice.rolls = 10000, theoretical = FALSE, plot.histogram = TRUE)

Arguments

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

Value

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

Examples

1
2

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