Question: 6. Write detailed steps (e.g., Step 1: do this, Step 2: do that, etc) that returns uniformly distributed random variables between 3 and 5.

6. Write detailed steps (e.g., Step 1: do this, Step 2: do that, etc) that returns uniformly distributed random variables between 3 and 5. Use an LCG with the equation: Z; = (a x Zi-1+c)(mod m), where m = 16, a = 5,c 3. U; = Z;/m with the seed of 5 to generate three different random numbers. Use these three random numbers U1, Uz and Uz to generate three random variates X1, X2 and X3 using your steps. (15 points)
Step by Step Solution
3.36 Rating (152 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
