Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!psuvax1!news From: melling@cs.psu.edu (Michael D Mellinger) Newsgroups: comp.os.msdos.programmer Subject: Random Numbers Message-ID: Date: 1 Mar 91 19:57:44 GMT Sender: news@cs.psu.edu (Usenet) Distribution: comp Organization: Penn State Computer Science Lines: 13 Nntp-Posting-Host: sunws5.sys.cs.psu.edu How can I get a random number on on DOS machines? Seeding the random # generator with the system clock seemed like a good idea, but not all machines have clocks. Here is what I am doing now. srand( (unsigned int) time(theTime)) Then I successively call rand() to get my random #. Anyone have a better idea? -Mike