一个关于随机数的问题
#include <stdlib.h>#include <stdio.h>
#include <time.h>
#define MAX 10
int main(void)
{
int number[MAX] = {0};
int i;
unsigned int seed;
scanf ("%u", &seed);
srand (seed);
for (i = 0; i < MAX; i++)
{
number[i] = rand() % 100; //这里怎么错了,我实在看不出来啊
printf ("%d",number[i]);
}
printf ("\n");
return 0;
}