关于随机数
Posted on 八月 16rd, 2007 由 admin
程序需要密码,对随机数进行加密。
请问随机数怎么来?定义个变量,每次运行的初始值就是随机数吗?
推荐阅读
网友:santos
random()函数
注意,取得的是0~99间的整数,这样写random(100),ok :)
网友:keiy
c++ builder 不仅有rand,random等标准c/c++函数还有:一套vcl函数
randg
generates random numbers with gaussian distribution.
randomfrom
returns a randomly selected element from an array.
randomize
initializes the random number generator with a random value.
randomrange
returns a random integer from a specified range.
randseed variable
randseed stores the built-in random number generators seed.


讨论区