created method for randomizing a set of numbers in an array