Mail Archives: djgpp/1998/05/10/09:31:58
On 10 May 1998, WANKADIA PAUL SAPAL MICHAEL wrote:
> "C.Rothwell" <enquiries AT aditfree DOT com> writes:
>
> >You could be clever and use the system clock to get a random number that was
> >diffrent every time you ran the program.
>
> I tried that once and discovered that rawclock() always returns 0 (for
> some ungodly reason).
Try harder. There are time-related library functions other than
`rawclock', use them instead. The usual practice is to use the output of
`time' as the seed, since `time' is ANSI-standard, whereas `rawclock'
isn't.
- Raw text -