delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/10/06:47:53

Date: 10 May 98 10:04:50 GMT
Message-ID: <wanpsm98.894794690@octarine>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: PROBLEM WITH FUNCTION RAND()
References: <6ivreu$jo5$2 AT talia DOT mad DOT ibernet DOT es> <3553BDF1 DOT 5E607F2 AT aditfree DOT com>
From: wanpsm98 AT octarine DOT cc DOT adfa DOT oz DOT au (WANKADIA PAUL SAPAL MICHAEL)
NNTP-Posting-Host: 131.236.253.20
Lines: 7
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

"C.Rothwell" <enquiries AT aditfree DOT com> writes:

>You could be clever and use the system clock to get a random number that was
>diffrent every time you ran the program.

I tried that once and discovered that rawclock() always returns 0 (for 
some ungodly reason).

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019