Date: Thu, 20 Jun 1996 13:25:34 +0200 (IST) From: Eli Zaretskii To: Nathan Kopp Cc: djgpp AT delorie DOT com Subject: Re: How to get a good value for srand? In-Reply-To: <4q9png$1u4@newsserv.grfn.org> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 19 Jun 1996, Nathan Kopp wrote: > How do I get a good value for srand()??? Timer functions like rawclock() > are no good because they are always zero the first time you call them. The usual way to do this is by calling `time': #include #include srand ((int)time ((time_t *)0));