cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/22/20:26:36

From: Martin Ambuhl <mambuhl AT earthlink DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: rand() function
Date: Thu, 21 Jan 1999 14:50:16 -0500
References: <36A72C2A DOT 3DAF8CFE AT cryogen DOT com>
X-Posted-Path-Was: not-for-mail
X-Accept-Language: en
X-ELN-Date: 21 Jan 1999 19:50:20 GMT
X-ELN-Insert-Date: Thu Jan 21 11:55:10 1999
Organization: Nocturnal Aviation
Lines: 13
Mime-Version: 1.0
NNTP-Posting-Host: 1cust190.tnt9.nyc3.da.uu.net
Message-ID: <36A784F8.D68E3E4@earthlink.net>
X-Mailer: Mozilla 4.5 [en] (Win95; I)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

FireFoX McLouD wrote:
> 
> How can I redefine the RAND_MAX parameter to use rand() with low
> numbers?

RAND_MAX is information provided to you about the implementation.
There is a good section in the comp.lang.c FAQ on random numbers.  It is
available from ftp://rtfm.mit.edu/pub/usenet, the standard repository
for newsgroup FAQs.

-- 
Martin Ambuhl (mambuhl AT earthlink DOT net)
Note: mambuhl AT tiac DOT net will soon be inactive

- Raw text -


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