class VGen::FloatGen
Public Class Methods
new( range=(-10..10) )
click to toggle source
# File lib/v_gen/float_gen.rb, line 3 def initialize( range=(-10..10) ) @range = range end
Public Instance Methods
call()
click to toggle source
# File lib/v_gen/float_gen.rb, line 9 def call() Random.new.rand( (@range.min.to_f..@range.max.to_f) ) end