casual_string = ""
string_length = 6
chars = ("a".."z").to_a + ("A".."Z").to_a
1.upto(string_length) { |i| casual_string << chars[rand(chars.size-1)] }

blog comments powered by Disqus