Date: Mon, 8 Mar 1999 17:35:14 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: M Automacao de Bingos e Casas noturnas cc: djgpp AT delorie DOT com Subject: Re: RANDOM In-Reply-To: <36e3ba29.0@news.americasnet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 8 Mar 1999, M Automacao de Bingos e Casas noturnas wrote: > I have problem using random() in DJGPP > example > random(100) > random return > 1-30;70-100 > > random not return 1-100 You are using the `random' function incorrectly; please consult the library reference documentation. The DJGPP version of `random' is not like the one from Borland: it does NOT take an argument, and it returns a random integer between 0 and RAND_MAX. RAND_MAX is defined in the stdlib.h header.