roll: Dice

Description Usage Arguments Value Examples

View source: R/annar.R

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(dietype = 1:20)

hovisa/annar documentation built on May 17, 2019, 4:52 p.m.