From: Robert Klemme Date: 2012-06-28T18:07:30+09:00 Subject: Re: Is this the correct use of rand? On Thu, Jun 28, 2012 at 11:05 AM, Robert Klemme wrote: > I am surprised nobody mentioned that code is flawed because it does > not adherer to the mentioned contract: the code will yield random > numbers outside the range given by min and max. Sorry Tanaka Akira, you mentioned it - and I overlooked it. :-) Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/