Give an algorithm to simulate the value of a random variable X such that P(X= 1) =

Question:

Give an algorithm to simulate the value of a random variable X such thatP(X= 1) = 0.35 P(X2) = 0.15 P(X= 3) = 0.4 P(X= 4) = 0.1

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: