Chapter 10: Q. 10.3 (page 431)
Give an efficient algorithm to simulate the value of a random variable with probability mass function
p1 = .15 p2 = .2 p3 = .35 p4 = .30
Short Answer
The algorithm is define using the Uniform continuous distribution over .