On 12 March 2011 22:16, Michael Pavling <[email protected]> wrote: > On 12 March 2011 22:01, Colin Law <[email protected]> wrote: >> OK, I admit defeat. the benefit of your technique is even greater on 1.8.7, >> taking only 0.67 secs on my machine. > > Nah! Who cares if it takes half-a-second or a second to select a > million random numbers.... any of the methods are perfect for > selecting one number.
The OP might be doing some statistical simulation, so might need millions of values, but probably not. Colin > > Was a nice distraction from the recent run of posts... > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" 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 > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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 http://groups.google.com/group/rubyonrails-talk?hl=en.

