delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/22/13:30:56

From: George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
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: <Pine DOT SUN DOT 3 DOT 91 DOT 980122183421 DOT 1427F-100000 AT is> <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

On Thu, 22 Jan 1998 19:12:33 +0100 in comp.os.msdos.djgpp Mirek
Prywata <mpry AT fuw DOT edu DOT pl> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019