Rejection sampling

Rejection sampling in plain English

Discarding draws that would give some outputs higher probabilities than others.

Example

A generator throws away excess values before choosing among 62 characters.

See what to do with this