#include <stdio.h>#include <stdlib.h>#include <time.h>
int main(){ int x = 0;
srand((unsigned)time(NULL)); x = rand() %10;
printf("产生的随机数是:%d \n", x);
system("pause"); return 0;}
posted on 2020-12-09 15:59 三日坊主i 阅读(57) 评论(0) 收藏 举报
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3