From: jason r tibbetts Date: 2005-07-16T05:07:13+09:00 Subject: Re: [QUIZ] Sampling (#39) Wybo Dekker wrote: > 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... From the original posting: > Your program should output exactly the requested number of members from the > defined range to STDOUT, one number per line. Each member must be unique and > they should appear in sorted order. The only thing that was left out of the original was the requirement that the values be random.