In
mathematics,
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
Monte Carlo method. The method works for any distribution in with a density.