ToiletMaster Posted January 18, 2018 Group: Members Topic Count: 76 Topics Per Day: 0.02 Content Count: 276 Reputation: 7 Joined: 08/11/12 Last Seen: January 26, 2018 Share 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 Link to comment Share on other sites More sharing options...
0 Secrets Posted January 18, 2018 Group: Developer Topic Count: 36 Topics Per Day: 0.01 Content Count: 588 Reputation: 437 Joined: 01/26/16 Last Seen: Wednesday at 03:00 PM Share Posted January 18, 2018 Store selected numbers in another array or removed selected number from the array. Quote Link to comment Share on other sites More sharing options...
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 ToiletMasterLink to comment
Share on other sites
1 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.