Source: https://math.unice.fr/~diener/probas/FoncGene.pdf