David Flanagan schrieb: > Nikolai Weibull wrote: >> On 9/13/07, Christian Neukirchen <chneukirchen / gmail.com> wrote: >> >>> rand.rb uses #pick. >> >> To me, "to pick" is the act of selecting with discrimination. >> >> How about #any? >> >> nikolai >> > > +1 for the name #any > > I also like Jon Olson's suggestion that the method take an optional > integer argument, and return an array with that many elements chosen at > random. (And with no argument, it returns just a random element, > without a containing array.) I still think it would be useful to have > any! which would remove the returned elements from the array. -2 for #any, as we already have Enumerable#any? And for me as non-native english speaker, it would be quite hard to quess the behaviour of #any, while #pick is quite intuitive for me as it's mostly the same word in german :) Regards, Michael