On Sun, Jul 8, 2012 at 12:15 PM, Shai Rosenfeld <[email protected]>wrote:
> I know there are ways around to define an alias for #rand on Array, but > am just curious; Why isn't it named #rand in ruby core? And if there's > no reason, why not add it? If you're defining a new Array instance method using random numbers and Array#rand exists, you'd have to be sure to use `Kernel::rand` instead of just `rand`. -- -yossef -- You received this message because you are subscribed to the Google Groups ruby-talk-google group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at https://groups.google.com/d/forum/ruby-talk-google?hl=en
