Create shuffle-array function.