Dice

roll(dietype = 1:6, probvalues = rep(1/length(dietype), length(dietype)))

Arguments

dietype

The type of die.

probvalues

The probability of getting a particular number of divots.

Value

The sum of two dice.

Examples

set.seed(123) roll()
#> Warning: standard dice
#> [1] 9
roll(dietype = 1:20)
#> Warning: non-standard dice
#> [1] 29