OK, this is pretty bad for a CS grad to ask, but my brain is worn out today.
I building a list of words (storing them in an Array).
I want to randomize the order.
Can anyone point me to a tutorial or common algorithm for that?
Thank you,
Michael Gorsuch
Holy crap. That is beautiful.
Thank you so much.
···
On 4/26/06, Kirk Haines <khaines@enigo.com> wrote:
On Wednesday 26 April 2006 2:36 pm, Michael Gorsuch wrote:
> I building a list of words (storing them in an Array).
>
> I want to randomize the order.
>
> Can anyone point me to a tutorial or common algorithm for that?
@array.sort_by {rand}
Kirk Haines