In: Statistics and Probability
A game uses a random number generator to produce four outcomes:
$1 probability of .4
$2 probability of .3
$3 probability of .2
$4 probability of .1
Let the random variable X model the game. Let u1, u2,….,uN be a sequence of random numbers where 0 <= ui < 1 for i= = 1,2,….,N. Define a process that uses this sequence to produce a sequence of random variates that has the same distribution as X