Making a quiz game and don't want the same question asked more than once?

Just wanting to make a quiz/trivia game where the player gets asked a series of multiple-choice questions throughout the game. Let's say I have 500 possible questions. How could I make it so that the game does not present the player with the same question more than once? I know you could do this by having each question tied to a switch, then checking if that switch is ON or not each time it randomly picks a question but i'm guessing there is a simpler way to do this?
How are you storing your questions? How are you storing your answers? Are you familiar with arrays? You can store your questions with the answers in an array, then shuffle that array. As a question is used, it gets removed from the array (thus it never shows up again). I think that would be the simplest way. The downside is you'd need to know a little bit of javascript.

Otherwise, your suggestion of using 500 switches is definitely doable. Would you have one common event to hold all the questions/answers, select a random number 1-500, then 500 conditional branches? Are the questions all general trivia or are they tied to classifications (World History, Inventions, Classical Music, etc)?
How are you storing your questions? How are you storing your answers? Are you familiar with arrays? You can store your questions with the answers in an array, then shuffle that array. As a question is used, it gets removed from the array (thus it never shows up again). I think that would be the simplest way. The downside is you'd need to know a little bit of javascript.

Otherwise, your suggestion of using 500 switches is definitely doable. Would you have one common event to hold all the questions/answers, select a random number 1-500, then 500 conditional branches? Are the questions all general trivia or are they tied to classifications (World History, Inventions, Classical Music, etc)?
I haven't started yet. It's just an idea at this stage so i'm willing to go whatever route is best, though I would indeed like questions to be in categories. Maybe like 500 questions divided into 5 categories of 100 questions each for example. I think the array idea you mentioned sounds good? I don't mind learning some javascript if its not overly-complicated 🙂
you can story each question inside an array.
as array can hold 100 each for security reasons, it split up
when you go over it.

so I don't know if index is the same.

you create those questions inside a JS file, and call it by function.
only I do it through a text file as and the answer as multiple choice.

while mine in "which of three", you can can answer your question,
and which of the 3 is correct.

while this is at random (wrong/correct pairs), I may be able to make it
functional to your way.

convert it to an array to pick a question and wont answer again.
when it randomize as well, but an array is the cleanest way to track down
which one was used.

something like: [[question: "here", used: false],[next],[next]] etc
or let the function remember the index and place it in a new array.
or remove/add to new array so it wont be in the current array for randomize questions.

Original thread: https://forums.rpgmakerweb.com/threads/making-a-quiz-game-and-dont-want-the-same-question-asked-more-than-once.182816/