Description Usage Arguments Details Value Examples
View source: R/newscriptmontyhall.R
play_n_games() generates the result if the game has been palyed for n tims and here for instance n is 100.
1 | play_n_games(n = 100)
|
... |
iterator values |
This is a loop function designed to build a simulation that plays the game for 100 times.
the fuction returns the result of the the decisions taken whether to switch or stay.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.