Experiment lab
A live server-side experiment. No account required.
Estimate π using randomness
Sample random points in a square. Count how many land inside a quarter circle. Four times the fraction inside estimates π.
What you get
- A reproducible estimate, error measurement, and statistical interval.
- A plot of sampled points and a convergence graph.
- CSV data to download and a public JSON API.
Change the seed to explore a different run. The server performs the calculation and returns ordinary HTML; JavaScript is not required in your browser.