Module: Jekyll::Random
- Defined in:
- jekyll/_plugins/random.rb
Instance Method Summary collapse
Instance Method Details
#random(input) ⇒ Object
26 27 28 29 30 31 32 |
# File 'jekyll/_plugins/random.rb', line 26 def random(input) if input <= 0 input else 1 + rand(input) end end |