delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/11/00:02:33

Mime-Version: 1.0
To: wanpsm98 AT octarine DOT cc DOT adfa DOT oz DOT au (WANKADIA PAUL SAPAL MICHAEL),
djgpp AT delorie DOT com
From: Nate Eldredge <nate AT cartsys DOT com>
Subject: Re: PROBLEM WITH FUNCTION RAND()
Date: Sun, 10 May 1998 20:55:01 -0700
Message-ID: <19980511035425.AAM4598@ppp107.cartsys.com>

At 10:04  5/10/1998 GMT, WANKADIA PAUL SAPAL MICHAEL wrote:
>"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).

In 2.01 it returns the number of clock ticks since first called, though the
docs imply differently. In 2.02 it will return ticks since midnight.

Nate Eldredge
nate AT cartsys DOT com



- Raw text -


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