Description Usage Arguments Value Examples
This function simulates the probability that, in a set of n randomly chosen people, some pair of them will have the same birthday. The problem was first proposed by Richard von Mises.
1 | birthday(n, g)
|
n |
The number of people in the group. |
g |
The number of groups to simulate |
A rational approximation of the probability that, in a set of n randomly chosen people, some pair of them will have the same birthday.
1 | birthday(23, g = 10000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.