Re: question about random generator



Peter Nilsson wrote:

Eric Sosman wrote:

...
    The rand() function generates uniformly distributed
integers in the range 0 <= rand() <= RAND_MAX <= 32767.


ITYM: 0 <= rand() <= RAND_MAX, where RAND_MAX >= 32767

Indeed, yes, that is exactly and precisely what I, of course, meant. (Blbbbpppfft -- I *hate* when I do that.)

--
Eric Sosman
esosman@xxxxxxxxxxxxxxxxxxx

.