select_door: Select a door in a Monty Hall Problem game.

Description Usage Arguments Details Value Examples

View source: R/monty-hall-problem.R

Description

select_door() selects an initial door from the three doors presented to the contestant at the beginning of the game.

Usage

1

Arguments

...

no arguments are used by the function.

Details

In the "Let's Make a Deal" game show, the contestant is presented with three doors to choose from. Behind two doors are goats and the other door has a car behind it.

Value

The function returns a length 1 numeric vector indiciting whether the contestant selected door 1, 2, or 3.

Examples

1

herbertm533/montyhall2 documentation built on Sept. 21, 2020, 12:03 a.m.