| delorie.com/archives/browse.cgi | search |
| Xref: | news2.mv.net comp.os.msdos.djgpp:7308 |
| From: | Erik Max Francis <max AT alcyone DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: rand(), random() or libg++ Random ? |
| Date: | Thu, 15 Aug 1996 07:55:21 -0700 |
| Organization: | Alcyone Systems |
| Lines: | 11 |
| Message-ID: | <32133A59.4F7BC6E0@alcyone.com> |
| References: | <1996Aug13 DOT 140921 AT uctvms DOT uct DOT ac DOT za> |
| NNTP-Posting-Host: | annex-p134.meer.net |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
stwand07 AT uctvms DOT uct DOT ac DOT za wrote: > I am busy working on an optimisation program that makes extensive use of random > number (stochastic search). I have been using srand(time(NULL)) and rand() to > give random numbers in the range 0..1, which I then scale as required. Er, rand gives values in the range of 0 to RAND_MAX. -- Erik Max Francis, &tSftDotIotE http://www.alcyone.com/max/ max AT alcyone DOT com San Jose, California ICBM 37 20 07 N 121 53 38 W R^4: the 4th R is respect War's a game which were their subjects wise/Kings would not play at. -- Cowper
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |