Farouq Alrahmou

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

Change the seed to explore a different run. The server performs the calculation and returns ordinary HTML; JavaScript is not required in your browser.