select_door: Contestant selects a door.

Description Usage Arguments Details Value Examples

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

Description

select_door() allows contestant to choose one door out of the three available doors at random.

Usage

1

Arguments

...

no arguments are used by the function.

Details

Contestant is asked to pick a door out of the three available doors. Two of the doors are goat doors and only one of the doors is a car door.

Value

The function returns a numeric vector of length one indicating the chosen door by contestant.

Examples

1

malmufre/montyhall documentation built on Sept. 20, 2020, 12:46 a.m.