roll: Rolling Dice

Description Usage Arguments Value Examples

View source: R/Project 1.R

Description

Rolling Dice

Usage

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

Arguments

dietype

The type of die you are rolling.

probvalues

the probability of getting a praticular number of divots.

Value

the sum of two dice divots

Examples

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

johnsonjc6/simplemathr2 documentation built on May 19, 2019, 5:17 p.m.