Mail Archives: djgpp/1998/01/22/14:00:48
George Foot wrote:
>
> : That's true, I was wrong. I simply meant
> : int random(int) and not int random (void)
>
> ... but even so, random does not take an integer. I don't have djgpp
> here to check, but the prototype should be `int random (void);'.
if you want to have random numbers, but not as big as RAND_MAX (or
MAX_RAND - I don't remember) then you can easily make random() that
returns numbers from <0,MY_RAND_MAX>. That's random(int) i meant.
IMHO there's no point in using different generator from rand(). If you
want to have better generator you must write it on your own, in order to
know, how it works.
M.P.
- Raw text -