In: Statistics and Probability
3. Develop a LCG random number generator in a spreadsheet for the following constants: Z0 = 17, a = 31, c= 5, and m = 73. Generate 72 random numbers. Change the value of a to 23 and describe what happens.
Here is the list of 72 random numbers generated using the LCG random number generator:
The calculations are shown below:
When a = 23 we get the following:
On changing a from 31 to 23 we have had a reversal of high values and low values i.e. the values that were on the higher end of the spectrum when a=31 are now on the lower end of the spectrum when a=23. For eg: - S.No 2 - 72 becomes 17 in the new scenario.
Please do upvote if you are satisfied! Let me know in the comments if anything is not clear. I will reply ASAP!