Rejection sampling
In numerical analysis and computational statistics, rejection sampling is a basic technique used to generate observations from a distribution. It is also commonly called the acceptance-rejection method or "accept-reject algorithm" and is a type of exact simulation method. The method works for any distribution in
R
m
{\displaystyle \mathbb {R} ^{m}}
with a density.
https://en.wikipedia.org/wiki/Rejection_sampling