Project

General

Profile

Actions

Feature #19987

closed

add sample method to Range

Added by horv77@protonmail.com (Andras Horvath) 8 months ago. Updated 8 months ago.

Status:
Feedback
Assignee:
-
Target version:
-
[ruby-core:115244]

Description

Dear Devs, I'd like to suggest a change. Since the following works:

(1..99).first(5)

Therefore this one could be logical and useful to work:

(1..99).sample(5)

Thanks,
Andras

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0