GetOddsXdYLowerThan: Get the odds of rolling XdY dice and not beating a given...

Description Usage Arguments Value Examples

Description

Get the odds of rolling XdY dice and not beating a given score.

Usage

1
GetOddsXdYLowerThan(X, odds, Y = 10, theoretical = FALSE, Z = 10000)

Arguments

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)

Value

An integer with the probability of the score given being achieved or beaten expressed as a percentage.

Examples

1
2
GetOddsXdYLowerThan(5, score.odds = 7)
GetOddsXdYLowerThan(X = 10, Y = 6, score.odds = 50)

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