摘要: 使用rand函数获得随机数。rand函数返回的随机数在0-RAND_MAX(32767)之间。 例子: /* RAND.C: This program seeds the random-number generator * with the time, then displays 10 random integers. */ #include <stdlib.h> #includ... 阅读全文
posted @ 2010-07-07 11:13 huhu0013 阅读(16179) 评论(0) 推荐(0)