Ssquare = L*L
Scircle = Pi*(L/2)2
Draw random dots, with sufficient dots, the probability of dots appearing in the circle approaximately equals the area of the circle within the area of the square:
Ncircle (number of dots in circle) ⁄ Nsquare (number of dots in square) ≈ Scircle ⁄ Ssquare = (Pi*(L/2)2) ⁄ (L*L)
=> Pi = Ncircle ⁄ Nsquare *4