www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/15/18:02:04

From: "F.X.Gruber-Museum-Arnsdorf" <f DOT x DOT gruber-museum-arnsdorf AT magnet DOT at>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Easy question...
Date: Sun, 15 Mar 1998 21:25:41 +0100
Organization: magnet Internet Services
Lines: 28
Message-ID: <6ehdi2$abt$1@orudios.magnet.at>
References: <19980315154000 DOT KAA08561 AT ladder03 DOT news DOT aol DOT com>
NNTP-Posting-Host: 195.3.67.175
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

KillFerFun schrieb in Nachricht
<19980315154000 DOT KAA08561 AT ladder03 DOT news DOT aol DOT com>...
>What is the DJGPP command for generating a random number?
>I've tried the Borland functions like int random(int num) but I always
>get Too many arguments for function errors. Anything appreciated...
>
>_-_-_-_-_-_-_-_
>--------------------------------------------------------------
>The very first essential for success is a perpetually constant
>and regular employment of violence.
>
>KillFerFun AT aol DOT com  ==>  http://members.aol.com/killferfun/perdition.htm

Hi,

if  i remember right the function that does the same as Borland's "random"
is
called "rand". But i'm not sure. In my djgpp-version, there's a
documentation file which shortly(very shortly) describes all standard lib
functions. I think its somewhere in the gnu/inf directory. (libc.inf ?)
You could look for a "rand()" function there under the topic  "random number
functions".
Perhaps someone else can give you more information on this,

Li


- Raw text -


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