Sha256: 91bb94996cb2624d8d99cf561f5414c74f831b64ff3d100ea7adc62a19c5eb0e
Contents?: true
Size: 295 Bytes
Versions: 1
Compression:
Stored size: 295 Bytes
Contents
module Stig module Generators module Float extend self # Public: Generates a random Float. # # max - A maximum Float or Range (default 0.0..1.0). # # Returns a Float. def random(max = 0.0..1.0) rand(max) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stig-0.1.0 | lib/stig/generators/float.rb |