Description Usage Arguments Examples
Estimate pi by making random draws and doing rejection sampling.
| 1 | estimate_pi(n)
 | 
| n | The number of draws to make | 
| 1 2 3 4 | estimate_pi(10)
# more accurate with bigger n.
estimate_pi(100000)
pi
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.