Generate 100 Random Numbers Without Using Rand in C

Write a c program that generates 100 random numbers without using the rand function. It will print the random numbers in the output. This will print the c program. By using this program it will create a One time password in the ATM. 

#include <stdio.h>
#include <stdlib.h>
int main()
{
int a, n;
printf("Print the number1 to 100\n");
for (a = 1; a <= 10; a++)
{
n = rand() % 100 + 1;
printf("%d\n", n);
}
return 0;
}

 

Output:

Print the number[1,100]
84
87
78
16
94
36
87
93
50
22