Question: Assignment # 4 Random Number Generator & LCGs Problem 1 . Consider an L C G , Z i + 1 = ( a Z

Assignment #4
Random Number Generator & LCGs
Problem 1. Consider an LCG,Zi+1=(aZi+35)(mod1872). Find the smallest value of
multiplier a such that the LCG has full period.
Problem 2. Consider the PMMLCG
(1) What is the possible maximal period length?
(2) Find a value of a such that the PMMLCG has the maximal period.
Problem 3. Use the PMMLCG Zi+1=(16807Zi)(mod(231-1)) with
to do the following:
(1) Generate 5000 random numbers Ui.
(2) Let
for i=1,dots,5000.
(3) Use Input Analyzer to perform goodness-of-fit on xi.
(4) What is the best-fitted distribution?
Problem 4. Use Excel's RAND() to redo Problem 3.
 Assignment #4 Random Number Generator & LCGs Problem 1. Consider an

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!