Definition

Let be independent random variables, be a PDF which we want to sample, and step 1: Generate and . step 2: If otherwise, go to step 1. step 3. repeat step 1 and 2.