def alphanumeric(size=16)
      s = ""
      size.times { s << (i = Kernel.rand(62); i += ((i < 10) ? 48 : ((i < 36) ? 55 : 61 ))).chr }
      s
    end
def alphanumeric(size=16)
      s = ""
      size.times { s << (i = Kernel.rand(62); i += ((i < 10) ? 48 : ((i < 36) ? 55 : 61 ))).chr }
      s
    end
Methods to create random strings and paragraphs.
 Returns a string of random upper- and lowercase alphanumeric characters.  Accepts a size parameters, defaults to 16 characters.

 >> Random.alphanumeric

 "Ke2jdknPYAI8uCXj"

 >> Random.alphanumeric(5)

 "7sj7i"