Date: Mon, 3 Jun 1996 18:06:44 +0200 (IST) From: Eli Zaretskii To: halibut AT kuhub DOT cc DOT ukans DOT edu Cc: djgpp AT delorie DOT com Subject: Re: use of srand with djgpp? In-Reply-To: <1996Jun3.061709.120699@kuhub.cc.ukans.edu> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 3 Jun 1996 halibut AT kuhub DOT cc DOT ukans DOT edu wrote: > To seed the random number table I always used srand(time(NULL)). > I have both time.h and stdlib.h included. Djgpp refuses to accept > this line of code. Is there any other way to do this? Please post the code that won't compile and the error messages printed by gcc. I tried ``srand (time (0))'' and it worked for me. > Maybe this could be put in the faq? FAQ is for *frequently* asked questions, not just for *any* questions (or else it will be enormously large). Other questions should be just asked here, like you did.