I need to arrange the items in my array in a random sequence. How do I come up with a random sequence?
Eg: In my game, I will need to arrange 24 items. If only have 5 items to arrange, sample random sequences are:
3-2-5-4-1
1-4-2-3-5
2-5-1-4-3
I believe that if I can have a way to random list the number 1 to 24 in a non-repeating sequence, I can arrange the items following the sequence. However, someone may have an even simpler suggestion.
(I'm new and have been looking and trying things out but no luck so far...)