Question: Recall that a way of simulating a sequence x 1 , x 2 , . . . pseudorandom numbers is via a linear congruential generator
Recall that a way of simulating a sequence x x pseudorandom numbers
is via a linear congruential generator LCG
xj axj b mod m
a marks Write a function with inputs n a b m s to produce a sequence of n ie listarray of length n pseudorandom numbers according
to with seed s ie x s
b marks Demonstrate your function works by creating a list of
pseudorandom numbers with a and b m s
c marks Why would the choice of parameters a b m be
a bad choice for creating pseudorandom numbers?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
