I need to write a quiz program that generates random questions.
My group and I determined that we would probably need to make use of the random function, so we did our research and were able to write the following program
#include<stdio.h>
#include<stdlib.h>
int main()
{
int i;
int j[10];
for(i=0;i<10;i++)
{
j[i]=rand()%10;
printf("%d \n",j[i]);
}
}
However, 2 problems were encountered.
We were unable to come up with a way to actually link that random number with a question so as to generate random questions
& we noticed that each time the program was run, it generated the same "random" numbers.
Is there some parameter we'd missed ?