Class RandomGenerators::Ruby
In: lib/random_generators/ruby.rb
Parent: RandomGenerator

Methods

Public Instance methods

[Source]

# File lib/random_generators/ruby.rb, line 16
    def choose_float ( f=1.0 )
      check_choose_float(f)
      Kernel.rand() * f
    end

[Source]

# File lib/random_generators/ruby.rb, line 11
    def choose_integer ( n )
      check_choose_integer(n)
      Kernel.rand(n)
    end

[Validate]