Unix下有个random()函数,它和VC下的哪个函数一样呀?
Unix下有个random()函数,它和VC下的哪个函数一样呀?
unix下说:
the random() and srandom() functions have (almost) the same
calling sequence and initialization properties as rand() and
srand() (see rand(3C)). The difference is that rand(3C) pro-
duces a much less random sequence-in fact, the low dozen
bits generated by rand go through a cyclic pattern. All the
bits generated by random() are usable.