Randomizing an Array doesn't work
---------------------------------

                 Key: JRUBY-1556
                 URL: http://jira.codehaus.org/browse/JRUBY-1556
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1b1
         Environment: $ jruby -version
ruby 1.8.5 (2007-11-01 rev 4842) [i386-jruby1.1b1]

$java -version
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Server VM (build 1.6.0_03-b05, mixed mode)

            Reporter: codehauser
            Assignee: Thomas E Enebo


  nodelist = [1, 2, 3, 4, 5, 6, 7, 8]
  nodelist = nodelist.sort { rand }
  nodelist.each { |n| print n, " " }

works in Ruby, but not in JRuby (no effect, no error)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
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

Reply via email to