--- from: http://rosettacode.org/wiki/Percolation/Mean_run_density note: Percolation Simulations