[#84280] [Ruby trunk Bug#14181] hangs or deadlocks from waitpid, threads, and trapping SIGCHLD — nobu@...
Issue #14181 has been updated by nobu (Nobuyoshi Nakada).
3 messages
2017/12/15
[#84398] [Ruby trunk Bug#14220] WEBrick changes - failures on MSWIN, MinGW — Greg.mpls@...
Issue #14220 has been reported by MSP-Greg (Greg L).
3 messages
2017/12/22
[#84472] Re: [ruby-dev:50394] [Ruby trunk Bug#14240] warn four special variables: $; $, $/ $\ — Eric Wong <normalperson@...>
Shouldn't English posts be on ruby-core instead of ruby-dev?
3 messages
2017/12/26
[ruby-core:84046] [Ruby trunk Misc#14147] Array#sample documentation is unclear about order
From:
stefan.pochmann@...
Date:
2017-12-01 23:45:22 UTC
List:
ruby-core #84046
Issue #14147 has been reported by StefanPochmann (Stefan Pochmann).
----------------------------------------
Misc #14147: Array#sample documentation is unclear about order
https://bugs.ruby-lang.org/issues/14147
* Author: StefanPochmann (Stefan Pochmann)
* Status: Open
* Priority: Normal
* Assignee:
----------------------------------------
Does `Array#sample` only guarantee a random subset, or also random order? It's not clear. I think the current reference implementation does produce random order, but the documentation doesn't guarantee it, so I can't rely on it. If random order is intended, I think the documentation should say so. Maybe say that `sample(n)` is equivalent to `shuffle.take(n)`? ("equivalent" meaning same possible outputs with same probabilities)
More details here: https://stackoverflow.com/q/47600931/1672429
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>