A visualization of a Monte Carlo algorithm for calculating π, implemented in Java and Swing.