#include <stdio.h>
#include <stdlib.h>
main()
{
unsigned int seed; /*申明初始化器的种子,注意是unsigned int 型的*/
int k;
printf("Enter a positive integer seed value:
");
scanf("%u",&seed);
srand(seed);
printf("Random Numbers are:
");
for(k = 1; k <= 10; k++)
{
printf("%i",rand());
printf("
");
}
return 0;
}