From: George Foot Newsgroups: comp.os.msdos.djgpp Subject: Re: random numbers? Date: 22 Jan 1998 18:16:46 GMT Organization: Oxford University, England Lines: 20 Message-ID: <6a82ee$k6k$1@news.ox.ac.uk> References: <34C78C11 DOT 3D2898C6 AT fuw DOT edu DOT pl> NNTP-Posting-Host: sable.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Thu, 22 Jan 1998 19:12:33 +0100 in comp.os.msdos.djgpp Mirek Prywata wrote: : Eli Zaretskii wrote: : > : > This is only correct for Borland. In DJGPP and many Unix compilers, : > `random' is a function, not a macro, and it uses an entirely different : > algorithm. Please make a point to double-check yourself before posting : > such definitive replies. : That's true, I was wrong. I simply meant : int random(int) and not int random (void) ... but even so, random does not take an integer. I don't have djgpp here to check, but the prototype should be `int random (void);'. -- Regards, george DOT foot AT merton DOT oxford DOT ac DOT uk