delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/12/19:48:51

From: Dick Taylor <dtaylor AT monmouth DOT com>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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   <cellis AT voyageur DOT ca>

   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

- Raw text -


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