From: S2 Date: 2008-05-09T06:30:47+09:00 Subject: Re: scramble sentence, how to better program? David A. Black wrote: > print "Enter a sentence: " > puts gets.split.sort_by { rand }.join(" ") but does this take into account that rand could generate the same numer two times? while that is not likely, it could happen.