- This program simulates the Buffon needle experiment described in the book, dropping n needles on a set of parallel lines. The program returns an estimate for Pi, using the book's method.


The source.