This snippet is similar to my snippets on how to create random numbers without repeats, particularly this one.
This snippet is different in that it takes an already existing array and "shuffles" it so that the order appears random. No checking is done to make sure that there are no duplicates in the array.
Try changing ARRAY_SIZE
and NUM_SWAPS
in the code and see how that affects the "randomness" of the array.