select_door: Inidicate which door number was selected by contestant.

Description Usage Arguments Details Value Examples

View source: R/newscriptmontyhall.R

Description

select_door()generates the door number that was chosen by the contestant.

Usage

1

Arguments

...

no arguments are used by the function.

Details

The contestant makes their first selection and they have to choose one of the three doors where there are two goats and one car hiding.

Value

The function returns a one numerical number indicating the chosen door.

Examples

1

ZEINAZEINEDDINE/montyhall documentation built on Sept. 20, 2020, 12:44 a.m.