Sha256: ae3b37f14f3cbe7768d6168845c2733cd57c000fb6353d7eb3de802e2bfc8a6f

Contents?: true

Size: 80 Bytes

Versions: 16

Compression:

Stored size: 80 Bytes

Contents

class Range
  def sample
    num = self.min + rand(self.max-self.min)
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
gamebox-0.5.5 lib/gamebox/lib/range_ext.rb
gamebox-0.5.4 lib/gamebox/lib/range_ext.rb
gamebox-0.5.2 lib/gamebox/lib/range_ext.rb
gamebox-0.5.1 lib/gamebox/lib/range_ext.rb
gamebox-0.5.0 lib/gamebox/lib/range_ext.rb
gamebox-0.4.1 lib/gamebox/lib/range_ext.rb
gamebox-0.4.0 lib/gamebox/lib/range_ext.rb
gamebox-0.4.0.rc11 lib/gamebox/lib/range_ext.rb
gamebox-0.4.0.rc5 lib/gamebox/lib/range_ext.rb
gamebox-0.4.0.rc4 lib/gamebox/lib/range_ext.rb
gamebox-0.4.0.rc3 lib/gamebox/lib/range_ext.rb
gamebox-0.4.0.rc2 lib/gamebox/lib/range_ext.rb
gamebox-0.4.0.rc1 lib/gamebox/lib/range_ext.rb
gamebox-0.3.4 lib/gamebox/lib/range_ext.rb
gamebox-0.3.3 lib/gamebox/lib/range_ext.rb
gamebox-0.3.2 lib/gamebox/lib/range_ext.rb