select_door: Contestant Selects a door - Function

Description Usage Arguments Details Value Examples

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

Description

In this function of the program, de contestant choose their first door.

Usage

1

Arguments

Three

numbers are placed on a vector (representing each door, 1, 2, and 3).

Details

The function will create a vector with 3 doors. ONE door is randomly selected.

Value

The game returns the selection (pick) of the contestant. Door: 1 goat Door: 2 goat Door: 3 door

Examples

1

sandralili/montyhall documentation built on Dec. 22, 2021, 10:14 p.m.