v
TABLE OF CONTENTS
1INTRODUCTION TO RANDOM NUMBER TESTING...............................1
1.1General Discussion.........................................................................................................................1
1.1.1Randomness............................................................................................................................11.1.2Unpredictability......................................................................................................................21.1.3Random Number Generators (RNGs).....................................................................................21.1.4Pseudorandom Number Generators (PRNGs)........................................................................31.1.5Testing....................................................................................................................................31.1.6Considerations for Randomness, Unpredictability and Testing..............................................6
1.2Definitions and Abbreviations.......................................................................................................61.3Mathematical Symbols.................................................................................................................11
2RANDOM NUMBER GENERATION TESTS..........................................13
2.1Frequency (Monobit) Test...........................................................................................................14
2.1.1Test Purpose..........................................................................................................................142.1.2Function Call........................................................................................................................142.1.3Test Statistic and Reference Distribution..............................................................................152.1.4Test Description....................................................................................................................152.1.5Decision Rule (at the 1 % Level)..........................................................................................152.1.6Conclusion and Interpretation of Test Results......................................................................152.1.7Input Size Recommendations...............................................................................................162.1.8Example................................................................................................................................16
2.2Frequency Test within a Block...................................................................................................16
2.2.1Test Purpose..........................................................................................................................162.2.2Function Call........................................................................................................................162.2.3Test Statistic..........................................................................................................................172.2.4Test Description....................................................................................................................172.2.5Decision Rule (at the 1 % Level)..........................................................................................182.2.6Conclusion and Interpretation of Test Results......................................................................182.2.7Input Size Recommendations...............................................................................................182.2.8Example................................................................................................................................18
2.3Runs Test.......................................................................................................................................18
2.3.1Test Purpose..........................................................................................................................182.3.2Function Call........................................................................................................................192.3.3Test Statistic and Reference Distribution..............................................................................192.3.4Test Description....................................................................................................................192.3.5Decision Rule (at the 1 % Level)..........................................................................................202.3.6Conclusion and Interpretation of Test Results......................................................................202.3.7Input Size Recommendations...............................................................................................202.3.8Example................................................................................................................................21
2.4Test for the Longest Run of Ones in a Block..............................................................................21
2.4.1Test Purpose..........................................................................................................................212.4.2Function Call........................................................................................................................212.4.3Test Statistic and Reference Distribution..............................................................................22
Leave a Comment