Description Usage Arguments Details Value Examples
View source: R/monty-hall-problem.R
select_door()
generates a door selection and the contestant
randomly chooses from.
1 |
... |
no arguments are used by the function. |
This function creates a vector of doors numbered 1, 2, 3. Three doors that one contestant can choose from. Then the contestant randomly selects ONE of the doors. The function returns the selection that the contestant has made, the door number between 1 and 3.
The function returns a length 1 numeric vector indicating the door position or number that one contestant initially selects.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.