def shuffle_array(array) ⏎ n = array.length n.times do |i| j = rand(n) array[i], array[j] = array[j], array[i] end array end