Class: DataAnon::Utils::RandomInt
- Inherits:
-
Object
- Object
- DataAnon::Utils::RandomInt
- Defined in:
- lib/utils/random_int.rb
Class Method Summary collapse
Class Method Details
.generate(min, max) ⇒ Object
5 6 7 8 |
# File 'lib/utils/random_int.rb', line 5 def self.generate min, max return 0 if (min == 0 && max == 0) Random.new.rand min..max end |