Class: Float

Inherits:
Object show all
Defined in:
lib/ext_core.rb

Overview

Some extentions to the core Float class

Class Method Summary collapse

Class Method Details

.generate(*_args) ⇒ Float

Randomly generate a Float instance

Returns:



43
44
45
# File 'lib/ext_core.rb', line 43

def self.generate(*_args)
  Random.rand(10e10)
end