James Gray
7/3/2008 4:10:00 PM
On Jul 3, 2008, at 11:08 AM, James Gray wrote:
> On Jul 3, 2008, at 11:04 AM, Robert Dober wrote:
>
>> a.sort{ rand }
>
> Don't do that:
>
> >> a = (1..5).to_a
> => [1, 2, 3, 4, 5]
> >> a.sort { rand }
> => [5, 3, 1, 4, 2]
> >> a.sort { rand }
> => [5, 3, 1, 4, 2]
> >> a.sort { rand }
> => [5, 3, 1, 4, 2]
Oh, you meant to show this behavior. My bad.
James Edward Gray II