It is then straightforward to obtain a (not really good) approximation to $\pi$ by counting how many times, on average, $\X^2 + Y^2$ is smaller than 1 :
It is then straightforward to obtain a (not really good) approximation to $\pi$ by counting how many times, on average, $X^2 + Y^2$ is smaller than 1 :