roll: Dice

Description Usage Arguments Value Examples

View source: R/functions.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.

Value

the sum of two dice

Examples

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

leffjr/jackr documentation built on May 21, 2017, 11:37 a.m.