From: Dick Taylor Newsgroups: comp.os.msdos.djgpp Subject: Re: Random Numbers Date: Mon, 08 Sep 1997 00:03:05 -0400 Organization: EverGreenSys Inc Lines: 13 Message-ID: <341378F9.6642@monmouth.com> References: <3413736A DOT 5E38 AT voyageur DOT ca> NNTP-Posting-Host: fh-ppp20.monmouth.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk J.E. wrote: > I was just wondering: How do you create a random number in Djgpp? I > tried setting a value for RAND_MAX and then going c = rand(), but that > didn't work (it said that the value for RAND_MAX, which was 2, was > invalid. Any help would be appreciated. > Jordan Ellis Random numbers is actually a complicated topic. But if you want some C code that you can cut and paste ... code that doesn't depend on the library rand() function ... take a look at http://www.evgr.com/poker. Dick Taylor