diff options
Diffstat (limited to 'spec/rubyspec/core/random/rand_spec.rb')
-rw-r--r-- | spec/rubyspec/core/random/rand_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/rubyspec/core/random/rand_spec.rb b/spec/rubyspec/core/random/rand_spec.rb index 2f10ed080a..e0cb133abd 100644 --- a/spec/rubyspec/core/random/rand_spec.rb +++ b/spec/rubyspec/core/random/rand_spec.rb @@ -172,13 +172,13 @@ describe "Random#rand with Range" do end it "works with inclusive ranges" do - prng = Random.new + prng = Random.new 33 r = 3..5 40.times.map { prng.rand(r) }.uniq.sort.should == [3,4,5] end it "works with exclusive ranges" do - prng = Random.new + prng = Random.new 33 r = 3...5 20.times.map { prng.rand(r) }.uniq.sort.should == [3,4] end |