Source: http://perso-laris.univ-angers.fr/~boimond/Simulation_course.pdf