Sampling a categorical PMF

There's more than meets the eye