Hello guys,
I want to know if how can I do a random number using math.random() or other ways, that if it sees that the number has been already returned from the previous number randomization, it will do math.random again.
Let say I do math.random(1, 10) then on the first loop it returns 2,on second loop it returns 1, on the third loop it returns 2 again, since 2 is already given it will just loop again for another number.
Because I’m planning to have a game that will give the player a random set of questions, then every time the player answers that particular question correctly, I will marked that question and will not be ask again from the player.
I do get the logic, but I can’t express it in code 
What is the best way to do this? I’ve been doing it for like 3 hours but still no luck.
Your help will be much appreciated
Thanks in advance,
Jam
