rubinius/rubinius — pull request #1875 by LTe (2012-08-24 08:56:00+00:00)
Title: Random range

MRI:

```ruby
rand(0.25..0.75) #=> 0.6428937309734553
```

Rubinius before patch:

```ruby
rand(0.25..0.75)
ArgumentError: invalid argument - 0.5
from kernel/common/random19.rb:19:in `random'
from kernel/common/random19.rb:8:in `random_range'
from kernel/common/kernel19.rb:51:in `rand'
from (irb):1
from kernel/common/block_environment.rb:75:in `call_on_instance'
from kernel/common/eval.rb:75:in `eval'
from kernel/common/kernel19.rb:42:in `loop'
from kernel/common/throw_catch19.rb:8:in `catch'
from kernel/common/throw_catch.rb:10:in `register'
from kernel/common/throw_catch19.rb:7:in `catch'
from kernel/common/throw_catch19.rb:8:in `catch'
from kernel/common/throw_catch.rb:10:in `register'
from kernel/common/throw_catch19.rb:7:in `catch'
from kernel/delta/codeloader.rb:68:in `load_script'
```

Rubinius after patch

```ruby
rand(0.25..0.75) # => 0.6086817891310674
```