Project

General

Profile

Actions

Bug #455

closed

Array#sample(n) loops if a > arr.size

Added by pragdave (Dave Thomas) over 16 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
Backport:
[ruby-core:18337]

Description

=begin
Try:

[1].sample(2)
=end

Actions #1

Updated by nobu (Nobuyoshi Nakada) over 16 years ago

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

=begin
Applied in changeset r18718.
=end

Actions

Also available in: Atom PDF

Like0
Like0