伪随机数rand()以及解决方案 1.rand()函数作用:产生随机数值,函数范围:0 ~ 32767 举例:int x = rand() //随机产生0~32767内的数字x 理解伪随机数:用一个程序举例: int main() { for(int i=0; i<10; i++) {