I got a question quite simple but I can't find the answer yet:
I would like to set a random number to a variable but without the numbers already contained in an array.
Indeed, I am building a quizz game with random questions but I would like to avoid to have twice the same question.
So my idea was to store the number of the already asked questions into an array to when the next random question is selected, it set a number different of all the previous numbers used.
Something like : system : set randomNumber to (random(0,10)) [without array numbers].
I am sure there are other ways to do so (with a check on the random number and if it is the same of one in the array, it start again etc etc) but it would be more easier this way and a great learning for next time :)
Thank you in advance!