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.
|
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Modification of Linear Congruential Generator - ttw - 10-13-2020, 03:34 AM
RE: Modification of Linear Congruential Generator - Albert Chan - 10-14-2020, 03:07 PM
RE: Modification of Linear Congruential Generator - ttw - 10-15-2020, 04:00 AM
RE: Modification of Linear Congruential Generator - pier4r - 10-15-2020, 06:46 AM
RE: Modification of Linear Congruential Generator - Namir - 10-16-2020, 01:18 AM
RE: Modification of Linear Congruential Generator - ttw - 10-16-2020, 01:44 AM
RE: Modification of Linear Congruential Generator - ttw - 10-16-2020, 01:39 AM
RE: Modification of Linear Congruential Generator - KeithB - 10-16-2020, 04:59 PM
RE: Modification of Linear Congruential Generator - ttw - 10-17-2020 12:53 AM
RE: Modification of Linear Congruential Generator - ttw - 06-12-2021, 07:38 PM
|
User(s) browsing this thread: 1 Guest(s)