Source: https://cermics.enpc.fr/~bl/monte-carlo/exo.pdf