From: Marc-Andre Lafortune Date: 2009-05-07T12:27:31+09:00 Subject: [ruby-core:23374] [Bug #1439] Array#sample returns wrong results for negative argument Bug #1439: Array#sample returns wrong results for negative argument http://redmine.ruby-lang.org/issues/show/1439 Author: Marc-Andre Lafortune Status: Open, Priority: Normal Category: core, Target version: 1.9.2 ruby -v: ruby 1.9.2dev (2009-05-06 trunk 23352) [i386-darwin9.6.0] $ ruby1.9 -v -e "p [1,2].sample(-1)" ruby 1.9.2dev (2009-05-06 trunk 23352) [i386-darwin9.6.0] [1, 2, false] ---------------------------------------- http://redmine.ruby-lang.org