Date: Thu, 21 Nov 1996 13:03:49 +0200 (IST) From: Eli Zaretskii To: Goncalo Farias Cc: djgpp AT delorie DOT com Subject: Re: Problems with djgpp 2.01 In-Reply-To: <9611210827.AA20803@grupo.bfe.pt> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 21 Nov 1996, Goncalo Farias wrote: > The problem, accordingly with others, is that i'm not using srand(). With > version 2.0 i didn't need to do that. Not true. The following program, compiled with DJGPP v2.01, will continuosly print random integers until you press a key. It works for me. So there is no need to call srand. #include #include #include int main (void) { int x; while (!kbhit ()) { x = rand (); printf ("Got %d\n", x); } return 0; }