delorie.com/archives/browse.cgi | search |
From: | mert0407 AT sable DOT ox DOT ac DOT uk (George Foot) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Random numbers |
Date: | 3 Jun 1997 01:46:34 GMT |
Organization: | Oxford University, England |
Lines: | 12 |
Message-ID: | <5mvt1q$f3i@news.ox.ac.uk> |
References: | <01bc6ce9$72076bc0$363e63c3 AT 8652hvt73761> <338F40EE DOT 5244E66 AT alcyone DOT com> <339110F2 DOT 7537 AT nxus DOT com> <3393489B DOT 50A3 AT cruzio DOT com> |
NNTP-Posting-Host: | sable.ox.ac.uk |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Chris Mangum and Savanna Judd (sneeches AT cruzio DOT com) wrote: : Try using this: : srand(time(NULL)); This will seed the rand() generator; to seed the random() generator, replace `srand' with `srandom'. -- George Foot <mert0407 AT sable DOT ox DOT ac DOT uk> Merton College, Oxford
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |