Randomizing an Array Help

a = [1,2,3,4,5]
a.sort_by {rand}
=> 3,1,5,2,4