Question: (Random number generation) You have a givenrandom number generator based on the LCG method with givenparameters: m = 31, a = 3, and c =

(Random number generation) You have a givenrandom number generator based on the LCG method with givenparameters: m = 31, a = 3, and c = 0. Also, the seed value (Z0) wasgiven as 15. Using the de?ned LCG, the generated 10 numbers are{14,11,2,6,18,23,7,21,1,3}. Generate 20 numbers more following thegiven 10 numbers and apply Chi-square test (? = 0.05) to verify itsrandomness on your 30 sample numbers.

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 Programming Questions!