Description Usage Arguments Details Value Examples
View source: R/monty-hall-problem.R
'select_door' picks a number from 1 to 3, representing the three doors.
1 |
... |
no arguments are used by the function. |
First, the variable 'doors' is created, holding the numbers 1 through 3. Then one of the numbers is selected randomly and put into the variable 'a.pick' which is returned when the function is called.
The function returns a numerical value between 1 and 3.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.