rand-rspec 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1676e282ca7b06da7735bcd4bbc54c5c12d95466
4
- data.tar.gz: e90306bbe2562cff84706c2b239747bf30cc9750
3
+ metadata.gz: a01ba4a88ad25fc28300c2bb02b0b61f5ab0320b
4
+ data.tar.gz: a925939205424f94748664c0fb6080ae3b1f0e80
5
5
  SHA512:
6
- metadata.gz: 73d5e83da434970810837de98d816f52c30fe239fdc8d6bf05826b97f597abd79879eca061b7488e9c280d66226efc1e3349504eb2511054b9fd218528cfc5d1
7
- data.tar.gz: a7f16d9ffb58c9a21aa09a58b957800693a7c8cbd355a5b61f3da16c45797d9b46eefc44df506bd91bacaec11a381fab2ac1a9b776f2901a04214bcda57c8132
6
+ metadata.gz: 4454abc3f2926d51bb71b4e008c0073e9619704da4157bd2c3a59572f4510e82be12562bf1e390d6f749020bb8f2171bf94f2d22959847b48a4fb8badd0eb2c8
7
+ data.tar.gz: abb961e1e9df42419aa92868a26172fed6fb78d90245492146b58c26aed1a6d2d370e8fcca16e02b74a8ea42980a016055962e9a1e50b26b98035051aee44e62
@@ -1,10 +1,16 @@
1
1
  module RandTest
2
2
  module Numbers
3
+
4
+ FIXNUM_MAX = (2**((0.size * 8)-2) -1)
5
+ FIXNUM_MIN = -(2**((0.size * 8)-2))
6
+
3
7
  def random_number_between(min, max)
4
8
  min+rand(max-min+1)
5
9
  end
10
+
6
11
  def random_number(max)
7
12
  random_number_between(0, max)
8
13
  end
14
+
9
15
  end
10
16
  end
@@ -1,3 +1,3 @@
1
1
  module Randtest
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rand-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pere Urbon-Bayes