数学物理学报 ›› 2022, Vol. 42 ›› Issue (5): 1482-1495.

• 论文 • 上一篇    下一篇

基于泊松对相关的伪随机数发生器的统计测试方法

叶笑(),丁义明*()   

  1. 武汉理工大学理学院数学科学研究中心 武汉 430070
  • 收稿日期:2021-11-19 出版日期:2022-10-26 发布日期:2022-09-30
  • 通讯作者: 丁义明 E-mail:yexiao@whut.edu.cn;dingym@whut.edu.cn
  • 作者简介:叶笑, E-mail: yexiao@whut.edu.cn
  • 基金资助:
    国家重点研发计划资助(2020YFA0714200)

On Testing Pseudo Random Generators Via Statistical Tests Based on the Poissonian Pair Correlations

Xiao Ye(),Yiming Ding*()   

  1. Department of Mathematics, School of Sciences, Wuhan University of Technology, Wuhan 430070
  • Received:2021-11-19 Online:2022-10-26 Published:2022-09-30
  • Contact: Yiming Ding E-mail:yexiao@whut.edu.cn;dingym@whut.edu.cn
  • Supported by:
    the National Key Research and Development Program of China(2020YFA0714200)

摘要:

测试伪随机数发生器(pseudo random number generator, PRNG)的性能是一个非常重要的问题, 通常以能否通过检验均匀性和独立性的统计测试方法来衡量. 1998年Rudnick和Sarnak提出了[0, 1)上实数序列的泊松对相关(Poissonian pair correlations, PPC)的概念, 独立且均匀分布的实数序列满足泊松对相关. 该文基于泊松对相关的概念提出了一种测试(0, 1)中伪随机数序列的一级统计测试方法, 给出了收敛判别标准的选取方法, 并对常见的PRNG(线性同余发生器、Mersenne Twister、Matlab.rand函数以及基于无理数$\pi$重叠产生的PRNG等)进行了测试, 同时与卡方检验、序列检验、游程检验以及自相关检验进行比较. 结果表明该测试方法不仅简单灵活、可操作性和可移植性较强, 能有效地同时检验伪随机数序列的均匀性和独立性.

关键词: 泊松对相关, 伪随机数发生器, 统计测试方法, 一级测试

Abstract:

Testing the quality of pseudo random number generators is an important issue. In general, PRNGs' randomness is measured by whether it passes the statistical test of testing uniformity and independence. In 1998, Rudnick and Sarnak proposed the concept of Poissonian pair correlations of real number sequences in [0, 1), an i.i.d. random sequence (sampled from the uniform distribution in (0, 1)) has Poissonian pair correlations. In this paper we propose a single-level statistical test for the real number sequences in (0, 1) based on the Poissonian pair correlations. We carried out PPC test on common PRNGs (Linear Congruential Generators, Mersenne Twister, Matlab.rand function, and PRNG based on the overlap of irrational numbers $\pi$, etc), introducing the selection method of convergence criterion. The test results show that the statistical test can effectively test the uniformity and independence of the pseudo-random number sequence at the same time.

Key words: Poissonian Pair Correlations, Pseudo Random Number Generators, Statistical test, Single-level testing

中图分类号: 

  • O213.9