Post Reply 
Modification of Linear Congruential Generator
10-17-2020, 12:53 AM
Post: #9
RE: Modification of Linear Congruential Generator
Implicit in all the stuff I wrote is a simpler suggestion. (It does not take advantage of the "independence" of quadratic residues though.) When using a prime modulus and primitive element for multiplier X = X*A mod (M), M should be taken to be a prime of the form 4*k+1 rather than 2*k+1. (This means not using Sophie Germain primes and similar). In the case of 4*k+1 primes, the odd and even calls to the RNG are both uniformly distributed.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Modification of Linear Congruential Generator - ttw - 10-17-2020 12:53 AM



User(s) browsing this thread: 1 Guest(s)