Module: LogGenerator::Apache::RAND

Included in:
LogGenerator::Apache, Host, Page
Defined in:
lib/apache-loggen/base.rb

Overview

インナークラスから使うためにmodule化 使う場合はinclude RANDする

Constant Summary collapse

RANDOM =
Random.new

Instance Method Summary collapse

Instance Method Details

#grand(n) ⇒ Object



98
99
100
# File 'lib/apache-loggen/base.rb', line 98

def grand(n)
  RANDOM.rand(n)
end