ToiletMaster Posted January 18, 2018 Posted January 18, 2018 (edited) Hi everyone, i have a question to ask. is there any possibility to select from an array and make sure that the selection is distinct? for example if i set an array of setarray .random[0], 100,200,300,400,500,600,700,800,900,1000; Is there a possibility that if i pick a number from this array, that it will not be repeated anymore? a quick solution would be putting the number in a variable and checking it, but that's only if it works with 1 time checks, what if i had 5 different times i'm selecting from this array that requires a distinct selection. Edited January 18, 2018 by ToiletMaster Quote
0 Secrets Posted January 18, 2018 Posted January 18, 2018 Store selected numbers in another array or removed selected number from the array. Quote
Question
ToiletMaster
Hi everyone,
i have a question to ask. is there any possibility to select from an array and make sure that the selection is distinct?
for example
if i set an array of
setarray .random[0], 100,200,300,400,500,600,700,800,900,1000;
Is there a possibility that if i pick a number from this array, that it will not be repeated anymore?
a quick solution would be putting the number in a variable and checking it, but that's only if it works with 1 time checks,
what if i had 5 different times i'm selecting from this array that requires a distinct selection.
Edited by ToiletMaster1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.