a**********k 发帖数: 1953 | 1 A pseudorandom number generator is a way of generating a large quantity of
random-looking numbers, if
all we have is a little bit of randomness (known as the seed). One simple
scheme is the linear congruential
generator, where we pick some modulus m, some constants a, b, and a seed x0
, and then generate the
sequence of outputs x0 , x1 , x2 , x3 , . . . according to the following
equation:
xt+1 = mod (axt + b, m)
(Notice that 0 ≤ xt < m holds for every t.)
You’ve discovered that a popular web si |