module FatCore::String::ClassMethods

Generating

↑ top

Public Instance Methods

random(size = 8) click to toggle source

Return a random string composed of all lower-case letters of length `size`

# File lib/fat_core/string.rb, line 423
def random(size = 8)
  ('a'..'z').cycle.take(size).shuffle.join
end