From: James Edward Gray II Date: 2006-03-31T06:20:23+09:00 Subject: Randomly Sorting Letters (was Re: Re: ) Can you please title your messages so others know what we are talking about? On Mar 30, 2006, at 3:11 PM, Meino Christian Cramer wrote: > From: James Edward Gray II > Subject: Re: > Date: Fri, 31 Mar 2006 05:39:15 +0900 > > Hi, > > sorry, me again. > > If I want not only "a".."z" but also "A".."Z" We can just add the Arrays of letters, then randomize: >> (("a".."z").to_a + ("A".."Z").to_a).sort_by { rand } => ["h", "j", "m", "x", "z", "O", "n", "r", "T", "F", "N", "k", "U", "a", "W", "p", "V", "E", "L", "A", "v", "D", "J", "P", "y", "C", "g", "u", "S", "i", "w", "q", "l", "K", "c", "B", "Z", "s", "t", "Y", "R", "e", "d", "o", "M", "I", "X", "f", "b", "G", "Q", "H"] Hope that helps. James Edward Gray II