//srand((unsigned)time(NULL));
//rand()%100
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
int i;
printf("...");
srand((unsigned)time(NULL));
for(i=0;i<10;i++)
{
// srand((unsigned)time(NULL));
printf("%d ",rand()%100);
}
printf("\n");
}
网友评论