摘要
针对Visual Basic 6.0内部随机数发生器,按无初始化、序列初始化和变量初始化等方法产生随机数序列,并对序列的均匀性和独立性进行实验.统计检验表明:该发生器性能优良,无初始化和序列初始化性能相近,其均匀性被拒绝的概率约10%,独立性被拒绝的概率约30%.如果产生每个随机数时都以当前时钟对发生器进行初始化,所得序列的均匀性略有改进,但独立性不能通过检验.
Non-randomized, series-randomized and every-single-variable randomized approaches are applied to verify the property of internal random function in Visual Basic 6.0, focusing on uniformity and independence. The statistical result indicates that the overall property of the internal function is pretty good. The properties of non-randomized and series-randomized series are much close, showing about 10% and 30% abandon rate of uniformity and independence respectively. If the function is randomized before every single variable is generated, uniformity is a bit better. However, the independence is deteriorating dramatically to be refused.
出处
《郑州大学学报(理学版)》
CAS
2005年第4期49-52,共4页
Journal of Zhengzhou University:Natural Science Edition
基金
河南省科技攻关计划项目
编号991150122
关键词
计算机仿真
随机数
均匀性
独立性
VB6.0
computer simulation
random number
uniformity
independence
Visual Basic 6.0