Date: Tue, 17 Jul 2001 14:01:07 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Jan Kowalski cc: djgpp AT delorie DOT com Subject: Re: random generator In-Reply-To: <591c995d39584286.39584286591c995d@poczta.arena.pl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 17 Jul 2001, Jan Kowalski wrote: > I have some problems with random generator. I use rand() function to > generate random valua. When I start my program evrey time its generates > the same value. What am I doing with it ? :( This is how `rand' is supposed to work; see section 22.23 of the DJGPP FAQ for more details and explanation how to get a different random series every invocation.