Return random values sampled from a discrete distribution