www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/28/17:02:49

Date: Sat, 28 Mar 1998 10:41:10 -0800 (PST)
Message-Id: <199803281841.KAA16599@adit.ap.net>
Mime-Version: 1.0
To: killferfun AT aol DOT com (KillFerFun), djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Simple random number generation question

At 10:36  3/27/1998 GMT, KillFerFun wrote:
>How do you seed the random number generator (like with Borland's randomize()
>function)?

`srand' or `srandom', depending on whether you use `rand' or `random'. A
good seed value is `time(NULL)'.

>Is there any list of legal DJGPP commands and usages? I use a Borland C++ help
>file, but many of the functions are not portable. Could someone point me to a
>URL? Much appreciated...

You mean, the functions in the C library? You should have the info file with
all that (type `info libc'), and I think it is also in HTML somewhere on
www.delorie.com.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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