计算机科学 > 数据结构与算法
[提交于 2010年4月19日]
标题:Some long-period random number generators using shifts and xors
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Marsaglia recently introduced a class of xorshift random number generators (RNGs) with periods 2n-1 for n = 32, 64, etc. Here we give a generalisation of Marsaglia's xorshift generators in order to obtain fast and high-quality RNGs with extremely long periods. RNGs based on primitive trinomials may be unsatisfactory because a trinomial has very small weight. In contrast, our generators can be chosen so that their minimal polynomials have large weight (number of nonzero terms). A computer search using Magma has found good generators for n a power of two up to 4096. These have been implemented in a free software package xorgens.
提交历史
来自:Richard Brent[v1] 2010年4月19日 星期一 07:52:08 UTC