Description Usage Arguments Details Value Examples
View source: R/Monty Hall Script.R
This function creates a numeric vector of length one. This vector represents the door that the player selected and is either 1, 2, or 3.
1 |
... |
This function does not take any arguments |
The door is selected at random using sample()
and will represent the either a goat or car based on
the positions in a.game
This function returns a numeric vector of length one called a.pick
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.