摘要
对随机数发生器进行有效的统计性能测试在离散系统仿真中具有重要意义。从数理统计的角度出发,分析了随机数序列参数检验、均匀性检验和独立性检验的数学基础,并以此为基础运用C++设计了基于动态链接库的随机数发生器统计性能测试软件包。在该测试软件包中,对随机数发生器产生的[0,1]均匀分布随机数序列的参数特性、均匀性和独立性分别从多个方面加以检验,提高了测试的完备性和正确性。最后,通过实例验证了该测试软件包的有效性。
It is significant to test random number generator effectively in discrete system simulation. This paper analyzed the mathematical bases of parameter tests, uniformity tests and independence tests for uniform random number generators based on mathematic theory of statistics. And a test software package was designed based on C++. To guarantee the accuracy and completeness of test, several functions were defined in the tests of parameter, uniformity and independence. The effectiveness of software package was validated by an example.
出处
《信息与电子工程》
2009年第4期366-370,共5页
information and electronic engineering
关键词
随机数发生器
统计检验
动态链接库
random number generator
statistic test
dynamic-link library