Description Usage Arguments Details Value Examples
View source: R/monty-hall-problem (4).R
select_door()
generates a random selection for the first choice the
contestant makes.
1 |
... |
Number between 1 and 3 |
In selecting a door, the contestant will later decide if he/she wishes to stay with the originally selected door, or if they will decide to switch.
The function returns a length 3 character vector indicating a selection of position between 1 and 3.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.