| www.delorie.com/archives/browse.cgi | search |
| From: | Thomas Harte <T DOT Harte AT btinternet DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: srand() |
| Date: | Sat, 25 Sep 1999 17:59:11 +0100 |
| Organization: | BT Internet |
| Lines: | 9 |
| Message-ID: | <37ECFF5F.AAD52476@btinternet.com> |
| References: | <7shlcr$bn2$1 AT canopus DOT cc DOT umanitoba DOT ca> <37ec69fb DOT 17055060 AT news DOT uswest DOT net> |
| NNTP-Posting-Host: | host5-99-56-44.btinternet.com |
| Mime-Version: | 1.0 |
| X-Mailer: | Mozilla 4.6 [en-gb] (Win95; I) |
| X-Accept-Language: | en-GB,en,en-* |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
> As an aside, I built this program with lcc-Win32 (I don't have DJGPP > installed right now :), then ran it 645 times and it actually produced > numbers between ~28,000 and ~30,000 so it's not the best way to get > random numbers, unless you modify the result with a bit more math. You do realise that 'time' only returns the time accurate to the second, and so, if your 645 runs were consecutive, this wasn't a very good test? -Thomas
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |