We demonstrate that a majority of modern random number generators, such as the newest version of rand.c, ranlux, and combined multiple recursive generators, have some manifest correlations in their outputs if the initial state is filled up using another linear recurrence with similar modulus. Among 58 available generators in the GNU scientific library, 40 show such defects. This is not because of the recursion, but because of carelessly chosen initialization schemes in the implementations. A good initialization scheme eliminates this phenomenon.rnCategories and Subject Descriptors: G.3 [Mathematics of Computing]: Probability and Statistics—Random number generationrnGeneral Terms: Algorithms, TheoryrnAdditional Key Words and Phrases: Difference collision, interstream correlation, Monte-Carlo simulation, nearly affine dependence, pseudorandom number generator.
展开▼