Generator

buffon

A generator in the probability library, called 7 times across 1 essays. Below: what it draws at its defaults and at each mode an essay asks for, what it checks while drawing, and everywhere it is used.

buffon is one function. Everything below came out of it during this build, at parameters taken from the essays rather than invented for this page — so a figure here is the same figure a reader meets in an essay, and if the generator changes, this page changes with it.

At its defaults

120 needles on a lined floor120 needles dropped at random across evenly spaced lines; 83 of them cross a line.83 of 120 cross a line2Ln / dc ≈ 2.892

show: "region"

The region where a needle crossesPlotting the needle's angle against its distance from the nearest line: it crosses exactly in the region under a half sine wave.0π/2π00.51angledistancecrossesmissesarea under the curve = 1area of the box = π/2

show: "convergence"

3 runs converging on pi3 independent runs of 1500 needle drops, each estimate settling toward pi.02004006008001000120014002.533.54needles droppedπ

What it checks while it draws

Collected by running the family and listening to lib/verify.js, not written here. The count is how many separate times this build put that claim to the test.

Where it is called

Changing this generator changes every figure on this list. That is what makes the list worth publishing rather than keeping in a check script.

The whole library · What the figures prove