Compute the percolation probability of a random square grid.