class DataAnon::Utils::RandomFloat
Public Class Methods
generate(min, max)
click to toggle source
# File lib/utils/random_float.rb, line 5 def self.generate min, max return 0 if (min == 0.0 && max == 0.0) Random.new.rand * (max-min) + min end