Subject: Re: Randomising
From: Robert Klemme <shortcutter googlemail.com>
Date: Mon, 18 Feb 2008 01:34:55 +0900
References: 291370291375
In-reply-to: 291375
On 17.02.2008 15:10, 7stud -- wrote:
> quiz_names = ['a', 'b', 'c', 'd', 'e']
>
> random_names = quiz_names.sort_by {|quiz_name| rand(0)}
You do not need the block parameter.
Cheers
robert