From: "francisrammeloo@..." Date: 2006-03-17T21:43:48+09:00 Subject: Re: Card tricks with Ruby >> cards = cards.sort_by { rand } How does this work?? I thought the code block should yield either -1, 0 or +1, but rand yields a number between 0 and 1. Or am I mistaken? Best regards, Francis