Simulation of Buffon's Needles to generate pi.