Mail Archives: djgpp/1997/06/03/01:34:52
Cesar Scarpini Rabak (csrabak AT dce03 DOT ipt DOT br) wrote:
: At 11:34 30/05/97 GMT, George Foot wrote:
: >This is just plain wrong, random takes no parameters and returns a number
: >from 0 to MAXINT (over two thousand million).
: For the sake of correctness from 0 to RAND_MAX...
Not according to the docs. They say that rand() returns numbers from 0 to
RAND_MAX inclusive, and random() returns numbers from 0 to MAXINT
inclusive.
--
George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
Merton College, Oxford
- Raw text -