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/.