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. David