Mail Archives: djgpp/1998/06/28/02:46:45
From: | "Jason Nehf" <zolaar AT earthlink DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | random numbers in DJGPP (beginner ?)
|
Date: | Sun, 28 Jun 1998 01:39:30 -0500
|
Organization: | EarthLink Network, Inc.
|
Lines: | 16
|
Message-ID: | <6n4o77$f9t$1@fir.prod.itd.earthlink.net>
|
NNTP-Posting-Host: | 1cust218.tnt2.chi5.da.uu.net
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I am a real newbie to C/C++ and DJGPP, and i was wondering how to create
random numbers, in the style of
Pseudocode:
randomNum = random(int MaxNum);
where randomNum is the random number returned and MaxNum is the maximum
value for randomNum, and the possible range is 0 to MaxNum. is there such a
routine, or will i have to build it from existing ones? I've searched the
RHIDE syntax help file and none of the routines it gave me were really what
i was looking for. Any help would be greatly appreciated.
Jason Nehf
- Raw text -