Array.shuffle!
Randomly rearranges the order of the elements within this array. A Fisher-Yates shuffle is used.
var a = [1, 2, 3, 4, 5]
a.shuffle! # => [1, 4, 5, 2, 3] (will differ)
Randomly rearranges the order of the elements within this array. A Fisher-Yates shuffle is used.
var a = [1, 2, 3, 4, 5]
a.shuffle! # => [1, 4, 5, 2, 3] (will differ)