Recommended value for the variable for Linear Congruential Generator

1.3k Views Asked by At

I am trying to generate 48 pseudoraandom number by using linear congruential generator. I am only using alphabet from a to z for my plaintext which will be for mapping 0 to 25.

I am using the algorithm for the linear congruential generator below

Xn+1 = (aXn + c) mod m

where Xn is the sequence of pseudorandom values, and

• Modulus: m, 0 < m
• Multiplier: a, 0 < a < m
• Increment: c, 0 ≤ c < m
• Seed: X0, 0 ≤ X0 < m

I am using the algorithm for the linear congruential generator below

Xn+1 = (aXn + c) mod m
X2 = (7(11) + 11) mod 18 = 16
X3 = (7(16) + 11) mod 18 = 15
X4 = (7(15) + 11) mod 18 = 8

What would be the recommended value for the seed, increment, multiplier and modulus. Keystream need to be from 0 to 26 as I need to map the number to the corresponding letter. I want unique and less repetition.

Please kindly advise.

Thank you

0

There are 0 best solutions below