delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/31/13:02:59

Date: Sun, 31 Aug 1997 10:00:06 -0700 (PDT)
Message-Id: <199708311700.KAA19618@adit.ap.net>
Mime-Version: 1.0
To: djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Random numbers...

At 04:22  8/27/1997 GMT, Amit Barak wrote:
>
>that's b/c srand() changes the seed for rand() but not for random() ...
>there is some other function to change the 'random()' seed,
>can't recall now ;-(
It's called `srandom', oddly enough... :)
Btw, `srand' doesn't seem to be mentioned in the libc docs. Is this a docs bug?

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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