Date: Sun, 10 May 1998 16:27:35 +0300 (IDT) From: Eli Zaretskii To: WANKADIA PAUL SAPAL MICHAEL cc: djgpp AT delorie DOT com Subject: Re: PROBLEM WITH FUNCTION RAND() In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On 10 May 1998, WANKADIA PAUL SAPAL MICHAEL wrote: > "C.Rothwell" 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.