From: 7stud -- Date: 2008-05-09T07:17:26+09:00 Subject: Re: scramble sentence, how to better program? S2 wrote: > 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. So what? -- Posted via http://www.ruby-forum.com/.