⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 diehard_craps.h

📁 Dieharder是一个是一个测试一序列伪随机数的随机性能的测试套件
💻 H
字号:
/* * diehard_craps test header. *//* * function prototype */void diehard_craps(Test **test,int irun);static Dtest diehard_craps_dtest = {  "Diehard(er) Craps Test",  "\n\#==================================================================\n\#                   Diehard Craps Test\n\#  This is the CRAPS TEST. It plays 200,000 games of craps, finds  \n\#  the number of wins and the number of throws necessary to end    \n\#  each game.  The number of wins should be (very close to) a      \n\#  normal with mean 200000p and variance 200000p(1-p), with        \n\#  p=244/495.  Throws necessary to complete the game can vary      \n\#  from 1 to infinity, but counts for all>21 are lumped with 21.   \n\#  A chi-square test is made on the no.-of-throws cell counts.     \n\#  Each 32-bit integer from the test file provides the value for   \n\#  the throw of a die, by floating to [0,1), multiplying by 6      \n\#  and taking 1 plus the integer part of the result.               \n\#==================================================================\n",  100,     /* Default psamples */  200000,  /* Default tsamples */  2        /* This test returns two statistics */};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -