select_door: CONTESTANT SELECTS A DOOR.

Description Usage Arguments Details Value Examples

View source: R/montyhall.R

Description

select_door() The contestant makes their first selection.

Usage

1

Arguments

no

arguments are used by the function.

Details

The contestant makes their first selection of a random door from Doors 1-3, with 1/3 chance to choose a Car and 2/3 chance to choose a goat.

Value

The function returns a 1/3 chance to choose a Car and 2/3 chance to choose a goat.

Examples

1

Sanaz-27/montyhall documentation built on Dec. 18, 2021, 12:56 p.m.