![]() |
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
JRuby 1.7.0.pre2 |
Assignee:
|
Unassigned |
Components:
|
Ruby 1.9.3, RubySpec |
Created:
|
13/Aug/12 3:02 PM
|
Description:
|
From ruby 1.9.3 documentation:
rand(max=0) â’ number
If max is Range, returns a pseudorandom number where range.member(number) == true
But I am getting a TypeError:
jruby-1.7.0.preview2 :001 > rand 1..7
TypeError: can't convert Range into Integer
from org/jruby/RubyKernel.java:1580:in `rand'
from (irb):1:in `evaluate'
from org/jruby/RubyKernel.java:1070:in `eval'
from org/jruby/RubyKernel.java:1395:in `loop'
from org/jruby/RubyKernel.java:1178:in `catch'
from org/jruby/RubyKernel.java:1178:in `catch'
from /Users/tim/.rvm/rubies/jruby-1.7.0.preview2/bin/irb:17:in `(root)'
|
Environment:
|
Mac OS X 10.7.4 Java 1.7.0_05
|
Project:
|
JRuby
|
Priority:
|
Major
|
Reporter:
|
Tim Olsen
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email