The value of
Area of square =
Area of circle =
Here, Monte carlo sampling comes handy to approximate the area. We will randomly throw darts aiming a square board which contains a circle. When, we have enough samples, then the area will be proportional to the number of darts on that region. So,