#include #include #include int main(){ int i,number[20];srand((unsigned) time(NULL)); //用时间做种,每次产生随机数不一样for (i=0; i<20; i++){number[i] = rand() % 100; //产生0-100的随机数printf("%d ", number[i]);}return 0;}