2020年6月15日

C语言中如何随机选数

摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> int main() { int a,n; char b = 'y'; srand((unsigned int)time(NULL));//以时间作为种子。 a=(rand()%1000 阅读全文

posted @ 2020-06-15 20:25 白胡 阅读(755) 评论(0) 推荐(0) 编辑

导航