Normally you call srand(time(NULL));
once (and only once) as the program is starting up.
To ask different questions, you'd normally get a random number with rand
, reduce it to the range of the number of questions, and use that to select one of the questions.