select_door: Contestant chooses a door

Description Usage Arguments Details Value Examples

View source: R/monty-hall-problem (4).R

Description

select_door() generates a random selection for the first choice the contestant makes.

Usage

1

Arguments

...

Number between 1 and 3

Details

In selecting a door, the contestant will later decide if he/she wishes to stay with the originally selected door, or if they will decide to switch.

Value

The function returns a length 3 character vector indicating a selection of position between 1 and 3.

Examples

1

bbeltran2395/montyhall documentation built on Dec. 19, 2021, 6:46 a.m.