intrandom_number(intmax)//定义随机数函数{intnumber;number=rand()%max+1;//产生0~Random_MAX的随机数printf("当前随机数为:%d\n",number);returnnumber;}