10以内的随机数 srand((size_t)time(NULL)); for (int i = 0; i < 10; i++) { printf("%d\n", rand() % 10); } 转载于:https://www.cnblogs.com/mayichen0823/p/10164153.html c/c++ 2023-08-04 41 点赞 0 评论 62 浏览