dice: Dice Roll

Description Usage Arguments Value Examples

View source: R/dice.R

Description

dice returns a random interger with values between 1 and N, simulating a roll of a single fair N sided die.

Usage

1
dice(sides = 6)

Arguments

sides

The number of sides on the dice to roll. Traditionally the values are 4, 6 default, 8, 12, 20, and 100, with six being the most common. The value should be an interger of value greater than or equal to 2.

Value

A random interger with a value between 1 and N inclusive.

Examples

1
2
3
dice()
dice(sides = 6)
dice(sides = 25)

ab9sq/Package4 documentation built on May 28, 2020, 6:32 p.m.