From: Dave Thomas Date: 2008-08-19T23:09:38+09:00 Subject: [ruby-core:18337] [Bug #455] Array#sample(n) loops if a > arr.size Bug #455: Array#sample(n) loops if a > arr.size http://redmine.ruby-lang.org/issues/show/455 Author: Dave Thomas Status: Open, Priority: Normal Category: core Try: [1].sample(2) ---------------------------------------- http://redmine.ruby-lang.org