diehard_craps.h

来自「Dieharder是一个是一个测试一序列伪随机数的随机性能的测试套件」· C头文件 代码 · 共 31 行

H
31
字号
/* * 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 + =
减小字号Ctrl + -
显示快捷键?