So imagine that we have a discrete random variable X that takes on K values, X1 up to XK, and let's assume that each of these has the XI occurs with probability theta I. And so we have theta one up to theta K. How might we go about using computational tools to generate samples from this distribution? 