Buffon’s Needles simulation in Processing

Buffon’s Needle is a famous way to (slowly) estimate . Here’s a processing.org program to calculate (to keep the math-hipster hatred of -day at a critical point and concave up). Link to live simulation and code. All variables are easy to change, size of window, length of needle, spacing of lines, etc. Neat program to write. […]