[此贴子已经被作者于2017-10-7 22:25编辑过]
#include<stdio.h> #include<time.h> #include <Windows.h> int main() { int a; for (a = 0; a<10; a++) { srand(a + 1); printf("结果是:%d %d\n", a, rand()); } getchar(); return 0; }