1 #include<stdio.h>
2 #include<time.h>
3 #include<stdlib.h>
4 //time_t time(time_t *seconds)
5 //void srand(unsigned int seed)
6 //int rand(void)//between 0 and RAND_MAX
7 int main()
8 {
9 int i;
10 unsigned int seed;
11 seed=(unsigned int)time(NULL);
12 srand(seed);
13 for(i=1;i<=10;i++)
14 {
15 printf("%5d",rand()%100);
16 }
17
18 return 0;
19 }