lib/assert/factory.rb in assert-2.10.0 vs lib/assert/factory.rb in assert-2.10.1
- old
+ new
@@ -95,10 +95,10 @@
def self.binary(input); input; end
end
module Random
def self.integer(max = nil)
- rand(max || 100) + 1
+ rand(max || 32_766) + 1
end
# `rand` with no args gives a float between 0 and 1
def self.float(max = nil)
(self.integer((max || 100) - 1) + rand).to_f