> or @my_array.sort_by! { rand } Except that sort_by! does not exist ;-) (at least not in 1.8.4) -- Sylvain