From: Wybo Dekker Date: 2005-07-16T04:56:21+09:00 Subject: Re: [QUIZ] Sampling (#39) On Sat, 16 Jul 2005, jason r tibbetts wrote: > Belorion wrote: > > On 7/15/05, Wybo Dekker wrote: > > > > > $ time ruby -e '5_000_000.times do puts rand(1_000_000_000) end' > > > >big_sample.txt > > > elap 16.612 > > > user 16.421 > > > syst 0.177 > > > CPU 99.91% > > > > > > $ wc big_sample.txt > > > 5000000 5000000 49446636 big_sample.txt > > > > > > or do I miss something?? > > > > > > The above example will result in duplicate members. Every number in > > the list must be unique. > > And sorted. I'll just wait until the last and final specification comes out... -- Wybo