(a). Use the inverse transform method to generate a random variable X with the probability mass function P(X=j)= j(j+1)
1

,j=1,2,… (b) Suppose that a random variable takes on values 1,2,…,10 with respective probabilities 0.06,0.06,0.06,0.06,0.06,0.15,0.13,0.14,0.15,0.13. Use the composition method to provide an algorithm for generating the random variable X.