Give an efficient algorithm to simulate the value of a random variable with probability mass function
p1 = .15 p2 = .2 p3 = .35 p4 = .30.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.