Randomization of array in place