[#18121] [Ruby 1.8.7 - Bug #405] (Open) ssl.rb:31: [BUG] Bus Error — Anonymous <redmine@...>

Issue #405 has been reported by Anonymous.

14 messages 2008/08/04

[#18130] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — Brian Candler <B.Candler@...>

> Seriously though... Array.first is a noun.

10 messages 2008/08/05

[#18319] NEW Command: absolute_path() -- — "C.E. Thornton" <admin@...>

Core,

14 messages 2008/08/16
[#18321] Re: NEW Command: absolute_path() -- — Yukihiro Matsumoto <matz@...> 2008/08/18

Hi,

[#18381] [Bug #496] DRb.start_service(nil) is very slow — Hongli Lai <redmine@...>

Bug #496: DRb.start_service(nil) is very slow

11 messages 2008/08/25

[ruby-core:18065] Re: New array methods cycle, choice, shuffle (plus bug in cycle)

From: "Yemi I. D. Bedu" <yemi@...>
Date: 2008-08-01 18:35:51 UTC
List: ruby-core #18065
Hello,
 The choice for "sample" should really considered. Others that I like:
 Arbitrary -> give back any element at random. A parameter will tell how
many (default one).
 Mix -> give the array back mixed (randomized). A parameter will tell
how many (default all).

The only possible thing that could be ambiguous about using "sample" is
that without a parameter, it is not easy to guess the "do the right" of
how many elements could be returned. Thank you. Good day.

Yemi Bedu

P&R Fasteners
325 Pierce St
Somerset, NJ 08873
732-302-3600

-----Original Message-----
From: Jim Weirich [mailto:jim.weirich@gmail.com]=20
Sent: Friday, August 01, 2008 2:02 PM
To: ruby-core@ruby-lang.org
Subject: [ruby-core:18059] Re: New array methods cycle, choice, shuffle
(plus bug in cycle)

On Aug 1, 2008, at 1:53 PM, Thomas Enebo wrote:
> I would assume a randomized array based on name.  Picking a good =20
> name is tough.  Picking a better name is not so easy.  =20
> Array.give_me_something


What about:

      array.random_choice
or   array.random_element

--=20
-- Jim Weirich
-- jim.weirich@gmail.com



In This Thread