From: James Edward Gray II Date: 2006-03-31T05:39:15+09:00 Subject: Re: On Mar 30, 2006, at 2:33 PM, Meino Christian Cramer wrote: > Hi; > > I am looking for an algorithm, which spread all 26 letters of the > alphabet over an array of 26 places randomly. All letters should be > statistically equally handled. Well, this is only as good as the random number generator, but it sure is easy: >> ("a".."z").sort_by { rand } => ["s", "m", "q", "j", "f", "r", "z", "e", "l", "k", "y", "v", "g", "d", "x", "p", "w", "a", "b", "c", "i", "t", "h", "o", "u", "n"] Hope that helps. James Edward Gray II