Ruby Quiz wrote:

> The challenge is to implement a program called "sample" that takes exactly two
> integer inputs.  The first of those should be the number of members you would
> like included in the sample.  The second is the upper boundary (exclusive) of
> the range of integers members can be selected from.  The lower boundary is zero
> (inclusive).
> 
> 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 description does not say that the output needs to be randomly selected 
from the input range. Without that, printing the first <members> numbers would 
be sufficient---and really fast.

	(0...members).each { | i | puts i }

Should the output be randomly selected from the range of input values?

Jim
-- 
Jim Menard, jimm / io.com, http://www.io.com/~jimm
"Ask not a question of USENET, for it will answer both 'Yea.' and 'Nay.'
and 'Ask in another group.'" -- Simon Slavin