From: Lloyd Linklater Date: 2009-07-01T05:20:53+09:00 Subject: Re: Making a random string All very groovy stuff! The final version I think I shall use is a bit of an amalgam of your input. def randString(len) s = "" 1.upto(len) { s << rand(36).to_s(36) } s.upcase end At one point I had "unless len < 1" but this functions the same way. Thanks again, everyone! -- Posted via http://www.ruby-forum.com/.