搜索资源列表
Srand
- 生成随机数的一个小程序,这种方法每次调用第一次产生的随机数相同率很高,但是做个循环连续调用几次,然后调用最后一次得到的随机数,就可以避免这种问题-Random Number Generation of a small program called this method the first time the same number of random high rate But to be a continuous cycle called several times, and then the
random
- 有关随机数的函数库,产生一个随机小数,某个范围的整数等功能-The random number library, generate a random decimal, a range of integer functions
Create_Random
- 以时间为种子产生4位随机数,整型的,以时间为种子,就不会重复了-Time for seed to produce four random number, integer, and time for the seed, would not duplicate the
random
- 实现产生满足高斯,瑞利和泊松分布的随机数-create random which satisfy Gussion,Rayleigh and poisson
TrafficSimu
- 产生3gpp中关于各类型业务所需要的随机数-produced 3gpp on various types of business needs random numbers
shuangseqiu
- 实现了双色球的基本功能,能产生随机数,对双色球的选号有帮助,-Realize the basic function of the ShuangSeQiu, can generate random, and the help of ShuangSeQiu large, ha ha
test_2
- 2、猜数游戏(cs.c) 功能要求:计算机产生随机数,猜中即胜,猜不中,提示是大了还是小了,继续猜,直至猜到,给出所用时间和评语。(可用vc6直接打开)-2, guess number game (cs.c) Functional requirements: a computer-generated random numbers guessed that wins, imagine not, tips are large or small, kee
7_2
- 单击“产生随机数”按钮,产生30个随机数,要求:(1)每隔100毫秒产生1个随机数,(2)用进度条控件显示随机数产生的进度,(3)将这些数以字符串的形式添加到组合框中,(4)实现组合框中内容的选择、删除功能。-Generate random numbers " button, click" generate 30 random numbers, and requirements: (1) every 100 milliseconds to generate a random n
airport-simulation
- 用队列来实现机场的起飞和降落队列。队列是用链表结构封装后来实现的。 假设有一个每次前进一分钟的模拟时钟,对于每一分钟,产生两个在0-99内的随机数:如果第一个随机数小于landingRate*100,那么一个“着陆到达”将发生并被添加到着陆队列中;如果第二个随机数小于takeOffRate*100,那么一个“起飞到达”将发生并被添加到起飞队列中。接着,检查跑道是否空闲。若空闲,首先检查着陆队列是否为非空,如果是,允许第一架飞机着陆;否则,处理起飞队列 -With a queue to a
RandNumber
- 产生一个随机数, 就是随随便便产生一个随机数而已 没什么可说的-Generating a random number, Is casually just to generate a random number Nothing to say
LCG
- 线性同余产生随机数,线性同余方法(LCG)是个产生伪随机数的方法。它是根据递归公式:N_{j+1} \equiv (A \times N_j + B ) \pmod{M} 其中A,B,M是产生器设定的常数-Linear congruential random number generation
randnum
- 产生制定个数的随机数,程序运行后,输入所要产生的随机数的个数,enter键结束,所产生的随机数会保存在相同目录下的.txt文件中,随机数的范围在0-100之间。-generate random number winthin 0-100,and they will be saved in a .txt file.