[...] have previously written about how to use the "table" distribution to generate random values from a discrete probability distributi.... For example, if there are 50 black marbles, 20 red marbles, and 30 white marbles in a box, the …