Source: https://math.unice.fr/~rubentha/enseignement/poly-integration-probas-janvier-2009.pdf