摘 要
随机函数在计算机应用以及操作系统中都有广泛的应用,本文对随
机函数的概况和一些应用做了简单的介绍。在 TurboC 中的 rand 函数等都
可以产生一个随机数,而在实际应用中,如果是利用循环反复产生随机
数,则会发现产生了若干个随机数后,后面的随机数序列与前面的随机
数序列完全相同。本文给出了其产生的原因以及一些改善方法。通过对三
——
种比较典型的方法产生的随机函数
人字型映射法,类同余法,超素
数法指标的分析,检验,了解随机函数的指标。在介绍超素数法的同时对
其与其他一些传统随机函数进行了比较分析。最后介绍满抛物线法产生的
随机函数,对其算法和指标进行分析检验,并对其程序实现。
Abstract
All there is extensive application in calculator appliedly and operate system
with the machine function, there is a brief introduction of the general situation
of the machine function with some the application. Many random function can
produce random figure in rand of TurboC. but in the actual application, if is to
make use of the circulation to produce again and again to count with the
machine, then will discover to few preface row and before of with machine few
preface row complete same when produce some with machine after counting.
There are some ameliorative method. There are three kinds of typical methods
of random function ——lterating herringbone shadow generate random
number . A kind of random numbers generated By congruence and their testing.
Method of generating long period pseudo-random numbers based on a special
property of prime numbers.we analysis the method of generating long period
pseudo-random numbers based on a special property of prime numbers
comparing with a little bit other tradition random function. finally, there is a
introduction of lterate parabola shadow generate random number .wo also
analysis and test it’s method creation and guide line .at last, it’s the procedure
realizes.
目 录