Description Usage Arguments Details Value Examples
View source: R/monty-hall-problem Script.R
select_door()
Randomly select one door out of ( 1,2,3 ) set and return the
selection
1 |
... |
no arguments are used by the function. |
Assume that a room is equipped with three doors. Behind two are goats, and behind the third is a shiny new car. In this function the player is picking a random door out of the three doors, and the game will continue as the player will see below till he win or lose.
The function returns a number between 1 and 3
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.