Project

General

Profile

Actions

Bug #1439

closed

Array#sample returns wrong results for negative argument

Added by marcandre (Marc-Andre Lafortune) almost 15 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2dev (2009-05-06 trunk 23352) [i386-darwin9.6.0]
Backport:
[ruby-core:23374]

Description

=begin
$ 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]
=end

Actions #1

Updated by nobu (Nobuyoshi Nakada) almost 15 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r23359.
=end

Actions

Also available in: Atom PDF

Like0
Like0