Best way to confirm that a series of values are different from each other?
Hello, everyone. I've got a question on something that's come up with my programming on a few occasions now. It seems a simple thing to do, but it's had me stumped for a while now. Say you want multiple values to generate to a random number, but you don't want it to proceed to the next step until each of them are unique from each other. Is there any good way to do this?
All I've been able to come up with so far is something basic like this.
If:
value 1 <> value 2
value 1 <> value 3
value 2 <> value 3
Then move on to the next step.
That works fine when I'm dealing with just a few values, but it gets troublesome when I start dealing with something like ten, when I need to have every single combination checked. It's impossible to do it in one event for something with dozens of values. Does anyone have any tips for a better way to do this without extensions?