roll: Dice

Description Usage Arguments Value Examples

Description

Dice

Usage

1
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

1
2
3
set.seed(123)
roll()
roll(1:20)

jungd/indyr documentation built on May 20, 2019, 4:24 a.m.