Somehow your code will have to
keep track of what questions have been selected so far.
You then have two possible approaches:
- Select the next question from those that have not been selected.
- Select a random question and reject it if it has already been selected.
Your choice will depend on how many questions there are altogether.
If there are under a thousand questions, any approach will do.
If there are many questions, approach
a may be impractical.