------art_9429_25762699.1204609973596
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

On Tue, Mar 4, 2008 at 5:04 AM, F. Senault <fred / lacave.net> wrote:

> - I gave you the way to create a "Roll" objetct, but you don't really
>    need it ; what you need is an "helper function" that returns a
>    number.  So, I made a module to contain it.
>

class Roll
>  def Roll.roll(base, range)
>    base+rand(range)
>  end
> end
>

You could use a regular ol'module for that:

module Roll
  def self.roll(base, range)
    base + rand(range)
  end
end

Arlen

------art_9429_25762699.1204609973596--