How Does Sampling Work?