Count the total number of "rain drops" that randomly fall in a unit square (S). Also count the number that fall inside or on the inscribed circle (C). pi ~ 4C/S.
https://plus.google....posts/T7Nwjv3TXEX
Neat.
The code is very short, and includes generation of plots using MatPlotLib.
Cheers,
Scott.