Learn R Programming

prob (version 1.0-1)

roulette: Roulette

Description

Sets up a sample space for the experiment of spinning a roulette wheel once.

Usage

roulette(european = FALSE, makespace = FALSE)

Arguments

european

logical.

makespace

logical.

Value

A data frame, with columns num and color, and an equally likely probs column if makespace is TRUE.

Details

If european is TRUE, then a traditional EU roulette wheel with 37 pockets is used, otherwise, a standard US roulette wheel with 38 pockets is used. Entries in the data frame are ordered in the customary way to facilitate the calculation probabilities regarding called bets.

See Also

cards

Examples

Run this code
# NOT RUN {
roulette()
roulette(european = TRUE, makespace = TRUE)
# }

Run the code above in your browser using DataLab