摘要
对常用随机数生成算法作简要介绍,以VisualBasic语言做为工具,对目前应用最为广泛的“素数模乘法线性同余随机数生成算法”和VB中的Rnd函数组成进行实现,并就该算法进行了统计检验。
In this paper, several algorithms of pseudo Random Random Number in common use are compared and analyzed. Combining Prime Modulus Multiplicative LCG and the Rnd ()function in Visual Basic,we realize a new kind of pseudo random number algorithm.With the statictical checkout for this algorithm,we can say it has good capability.
出处
《电脑学习》
2005年第6期25-26,共2页
Computer Study