| delorie.com/archives/browse.cgi | search |
| Xref: | news2.mv.net comp.os.msdos.djgpp:5264 |
| From: | Tim Hesketh <T DOT Hesketh AT unsw DOT edu DOT au> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: How to get a good value for srand? |
| Date: | 20 Jun 1996 22:54:09 GMT |
| Organization: | University of New South Wales |
| Lines: | 16 |
| Message-ID: | <4qckqh$7l@mirv.unsw.edu.au> |
| References: | <4q9png$1u4 AT newsserv DOT grfn DOT org> |
| NNTP-Posting-Host: | timh.ee.unsw.edu.au |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
nkopp AT grfn DOT org (Nathan Kopp) wrote: > > > How do I get a good value for srand()??? Timer functions like rawclock() > are no good because they are always zero the first time you call them. > Any help? > > > Nathan Kopp > (Impulse) ----- snip ----- A standard seed for random numbers is the number of seconds since 0:0:0 1/1/1970. Look in sys/timeb.h for ideas about getting it. Tim Hesketh t DOT hesketh AT unsw DOT edu DOT au
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |