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
96 97 98 |
# File 'lib/apache-loggen/base.rb', line 96 def grand(n) RANDOM.rand(n) end |