class VGen::IntGen

Public Class Methods

new( range=(0..10) ) click to toggle source
# File lib/v_gen/int_gen.rb, line 3
def initialize(
      range=(0..10)
    )
  @range = range
end

Public Instance Methods

call() click to toggle source
# File lib/v_gen/int_gen.rb, line 9
def call()
  Random.new.rand(@range)
end