
Issue #19987 has been updated by nobu (Nobuyoshi Nakada). Status changed from Open to Feedback Even if limited to bound `Range`, we can't enumerate all possible elements in `Float`. As in the first proposal, it would make sense only for `Integer` ranges. May we close this? ---------------------------------------- Feature #19987: add sample method to Range https://bugs.ruby-lang.org/issues/19987#change-105165 * Author: horv77@protonmail.com (Andras Horvath) * Status: Feedback * Priority: Normal ---------------------------------------- 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 -- https://bugs.ruby-lang.org/