select_door: Contestant selects a door.

Description Usage Arguments Details Value Examples

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

Description

'select_door()' randomly generates a numeric vector (1-3) which indicates a door produced from the create_game() function.

Usage

1

Arguments

...

no arguments are used by the function.

Details

The randomly generated numbers from this function represent either a "goat" or "car" door from the create_game() function.

Value

The function returns a single numeric vector: 1, 2, or 3.

Examples

1

ekmcintyre/montyhall documentation built on Feb. 1, 2021, 12:24 a.m.