以下是引用zqy110007在2008-11-28 18:56的发言:
楼上,为什么是伪随机数?
MSDN中关于rand():
Return Value
rand returns a pseudorandom number, as described above. There is no error return.
Remarks
The rand function returns a pseudorandom integer in the range 0 to RAND_MAX (32767). Use the srand function to seed the pseudorandom-number generator before calling rand.