This tutorial explains the Rejection Sampling algorithm using a difficult to sample univariate distribution function.
#sampling
#montecarlo
#statistics
If you prefer to read, I have written an article on this algorithm here -
https://towardsdatascience.com/what-is-rejection-sampling-1f6aff92330d?sk=08923252ab1d9af1dc5413f968c75397