From: Urabe Shyouhei Date: 2007-06-17T06:23:30+09:00 Subject: Re: comments needed for Random class Daniel DeLorme wrote: > a float in the range 1.1 <= n < 3.1, same as 1.1+rand*(3.1-1.1) The world is not *that* simple. What if one (or both) side of range is Infinity? it is quite possible programmer think ruby can generate a half-open random sequence in that way (which is obviously a delusion). What if (Float::MIN..Float::MAX) is given? Random float of that range (1) have far grater lower bound than Float::MIN if you choose its least upper bound be Float::MAX, or (2) have far smaller upper bound than Float::MAX if you choose its infimum be Float::MIN, or (3) have non-uniform distribution if you choose to force both bounds.