arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.21678cs.MScs.NAmath.NA
收藏

Mersenne Twister伪随机数生成器MT19937输出中的一些重复模式

Some Patterns of Duplications in the outputs of Mersenne Twister Pseudorandom Number Generator MT19937

SICAP R&D(SICAP研发);Yamagata Ujniversity(山形大学);AMAGAERU Institute of Free Mathematics(自由数学阿马盖鲁研究所)

Alain Schumacher, Takuji Nishimura, Makoto Matsumoto

AI总结:

本文发现MT19937在运行长度分布测试中失败,揭示了其输出中存在异常的重复模式,尽管该缺陷可能不严重,但仍需向相关学术界报告。

摘要:

Mersenne Twister MT19937伪随机数生成器自1998年由最后两位作者引入以来,仍被广泛使用。它通过了所有现有的统计测试,除了线性复杂度测试,该测试测量特定位中1的个数的偶奇比(因此对大多数应用来说并不重要)。Harase报告称MT19937在一些生日间隔测试中被拒绝,这些测试设计得较为人为。在本文中,我们报告称MT19937在基于运行长度分布的自然测试中失败,我们在输出的32位整数中发现了一个相同的值。运行长度为623的观测次数比预期值大约40倍(并且比622和624等的观测次数也大),这表明对应的p值几乎为0。我们对这些现象进行了数学分析,并获得了一个定理来解释这些失败。似乎MT19937并不严重缺陷,因为发现缺陷需要天文数字的努力。然而,这些现象应向伪随机数生成相关的学术社会报告。

英文摘要:

The Mersenne Twister MT19937 pseudorandom number generator, introduced by the last two authors in 1998, is still widely used. It passes all existing statistical tests, except for the linear complexity test, which measures the ratio of the even-odd of the number of 1's among specific bits (and hence should not be important for most applications). Harase reported that MT19937 is rejected by some birthday-spacing tests, which are rather artificially designed. In this paper, we report that MT19937 fails in a natural test based on the distribution of run-lengths on which we found an identical value in the output 32-bit integers. The number of observations of the run-length 623 is some 40 times larger than the expectation (and than the numbers of the observations of 622 and 624, etc.), which implies that the corresponding p-value is almost 0. We mathematically analyze the phenomena, and obtain a theorem which explains these failures. It seems not to be a serious defect of MT19937, because finding the defect requires astronomical efforts. Still, the phenomena should be reported to the academic society relating to pseudorandom number generation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑