Abstract

In 1985, G. Marsaglia proposed the m-tuple test, a runs test on bits, as a test of nonrandomness of a sequence of pseudorandom integers. We try this test on the outputs from a large set of pseudorandom number generators and discuss the behavior of the generators. The lower-order bits of a linear congruential generator taken modulo $2^p $ always have small period, and hence fail the test. However, we also show by example that sequences of bits with long period can display substantial nonrandom behavior. Linear congruential generators with prime modulus can fail the test in their low-order bits. Shift-register (Tausworthe) generators can fail in their central bits. The combination generators proposed by Marsaglia also fail the test.Fibonacci generators perform well on the test, if properly initialized. These generators require a vector of seeds which can be conveniently set using the output of a simple (that is, congruential or shift-register) generator. Shift-register generators are good initializers for almost every combination of lags and operators reported here. Fibonacci generators initialized by linear congruential generators pass if the initializer passes and fail if it fails.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call