Description Usage Arguments Value Examples
This function simulates the average payout of a player in the lottery game and consequent probability problem proposed by Nicolas Bernoulli.
1 | petersburg(x, bet = 0)
|
x |
The number of lotteries to simulate. |
be |
The price at which the player plays the game. |
The average payout across all simulated lotteries.
1 | petersburg(10000, bet = 15)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.