Module: RandomUtil

Defined in:
lib/random_util.rb

Class Method Summary collapse

Class Method Details

.randstr(len = 8) ⇒ Object



4
5
6
# File 'lib/random_util.rb', line 4

def RandomUtil.randstr(len=8)
  (0...len).map { (65 + rand(26)).chr }.join
end