Hi all.
I have 16 variables that each need to hold a value between 1 and 16, which is easy enough. But I need no two of these variables to contain the same number, which means I can't just Rand between 1 and 16 in all of them. I've tried a couple solutions using the GUI with loops and conditional branches, but I'm still seeing repeated numbers and not sure why. Essentially I need help shuffling a deck of 16 cards, each with a unique value:
16 Variables containing [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
I need to become something like
16 Variables containing [7, 2, 13, 5, 15, 12, 1, 14, 4, 6, 9, 15, 3, 16, 8, 10]
Does anybody have a simple solution I could attempt with the GUI, or a simple script I can insert into an event?
I have 16 variables that each need to hold a value between 1 and 16, which is easy enough. But I need no two of these variables to contain the same number, which means I can't just Rand between 1 and 16 in all of them. I've tried a couple solutions using the GUI with loops and conditional branches, but I'm still seeing repeated numbers and not sure why. Essentially I need help shuffling a deck of 16 cards, each with a unique value:
16 Variables containing [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
I need to become something like
16 Variables containing [7, 2, 13, 5, 15, 12, 1, 14, 4, 6, 9, 15, 3, 16, 8, 10]
Does anybody have a simple solution I could attempt with the GUI, or a simple script I can insert into an event?