Hello everyone!
Just asking for some great ideas to hone my coding skills
Ok so I have this table let’s name myLists:
local myLists = {
“first_entry”,
“second_entry”,
“third_entry”
}
local myAnswer = math.random(1,#myLists)
when myAnswer gets a random value and the player manages to answer it, let’s use “second_entry” for example, i dont want it to be a choice for the next round for math.random. I want math.random to skip it if it encounters “second_entry” in the next round. . there are two ways to do this. delete it from the table after the player is able to answer the question(second_entry) or make a ‘skip’ function so math.random will pick another data if it encounters ‘second_entry’ in the next round…
Does anyone have a suggestion on how to do this properly??? gimme a tidbit of code for reference >:DD
many thanks in advance. ROCK ON!
