How do I choose variables for a PRNG?

How do I choose variables for a PRNG?
0.0 0

#1

I know that you can generate pseudorandom numbers using this formula:
X_{n + 1} = a * X_n mod c

As far as I understand, the first value in X (i. e., X_0) is the seed for the PRNG.

What I don’t understand is what a and c are. The tutorial I used also talks of a modulus (m, 0 < m) and tells me that a (0 < a < m) is a multiplier and c (0 < c <= m).
A simple google search does not reveal anything much about these variables.

Can someone please explain or give me a link to a good website where I can read about these parameters?


#2

Nobody has answered this yet, so I’m going to BUMP.


#3

Here’s a wiki about the formula and it’s parameters.

(and values that some languages use for their PRNG)


#4

Thanks a lot! I’ll go through it.