Paper record

W2010523529

On the xorshift random number generators

François Panneton, Pierre L’Ecuyer

Year
2005
Venue
ACM Transactions on Modeling and Computer Simulation
References
25
Cited by
122

Details and counts from OpenAlex.

Abstract

G. Marsaglia recently introduced a class of very fast xorshift random number generators, whose implementation uses three “xorshift” operations. They belong to a large family of generators based on linear recurrences modulo 2, which also includes shift-register generators, the Mersenne twister, and several others. In this article, we analyze the theoretical properties of xorshift generators, search for the best ones with respect to the equidistribution criterion, and test them empirically. We find that the vast majority of xorshift generators with only three xorshift operations, including those having good equidistribution, fail several simple statistical tests. We also discuss generators with more than three xorshifts.