From: Joel Pearson Date: 2013-02-21T19:54:47+09:00 Subject: Re: How does Array#shuffle! works in ruby? It's random. It's behaving exactly the way it should, any recursion you should do yourself. You wouldn't like it if you had an array of objects and shuffling the array messed with your objects' internal state. > Why does shuffle! not shuffle the element array > #=> [1, 2, 4, [7, 8]] > a.shuffle! > #=> [[7, 8], 1, 4, 2] You can see that the array inside the other array did, in fact, move. -- Posted via http://www.ruby-forum.com/.