So I have an array that looks like this
[1, 2, 3, 4, 5, 6, 7, 8]
It can be shuffled in any way like so
[6, 3, 4, 7, 1, 2, 8, 5]
How do I make a function that has a unique index for every possible configuration of these 8 elements? emphasized text(kind of like generating hashes) I've been trying to think of a way, and I can't seem to find it. Thanks for any advice!