dice: Dice Roll

Description Usage Details Value Examples

View source: R/dice.R

Description

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

Usage

1
dice()

Details

dice utilizes the runif function to achive the output and therefor can be made repeatable but utilizing the set.seed functionality. While reproducability is needed at times this should only be utilized sparingly and with caution because when used the dice becomes no longer "fair."

Value

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

Examples

1
dice()

ab9sq/RPackageLearn documentation built on Feb. 9, 2018, 9:16 a.m.