Generator

120 needles on a lined floor

A generator in the probability library, called 9 times across 3 essays. Below: what it draws with nothing chosen 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.

With nothing chosen

120 needles on a lined floor. 120 needles dropped at random across evenly spaced lines; 83 of them cross a line.

The region where a needle crosses

The region where a needle crosses. Plotting the needle's angle against its distance from the nearest line: it crosses exactly in the region under a half sine wave.

3 runs converging on pi

3 runs converging on pi. 3 independent runs of 1500 needle drops, each estimate settling toward pi.

What it checks while it draws

Collected by running the family and recording what it asserted, not written here. The count is how many separate times the claim was put to the test while these drawings were made.

Where it is called

Every figure on this list is drawn by the same rule, so a change to the rule changes all of them at once. That is why the list is published.

The whole library · What the figures prove