in reply to randomize array
But, are you aware that you're changing your original array, in place? Thus, your function doesn't have to return anything, you can just print out the original array. An usually, that's an undesired side effect.