Class: Endless::App

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/endless/app.rb

Defined Under Namespace

Classes: DataStream

Instance Method Summary collapse

Instance Method Details

#randomLetters(length) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/endless/app.rb', line 17

def randomLetters(length)
  s = []
  length.times do
    s << 97+rand(26)
  end
  s.pack('c' * s.size)
end