Mail Archives: djgpp/1998/03/15/18:02:04
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 -