Description Usage Arguments Details Value Examples
View source: R/monty-hall-problem.R
In this function of the program, de contestant choose their first door.
1 |
Three |
numbers are placed on a vector (representing each door, 1, 2, and 3). |
The function will create a vector with 3 doors. ONE door is randomly selected.
The game returns the selection (pick) of the contestant. Door: 1 goat Door: 2 goat Door: 3 door
1 | select_door( )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.