Mail Archives: djgpp/1997/01/05/19:51:10
David Avery wrote:
>
> Is there a randomize() funtion for DJGPP? If so
> which Lib is it in? I keep getting the same #'s
> when I use the random() funtion, and I need
> to randomize the # seed.
randomize() is a Borland-esque obscenity. :) Try this code:
#include <stdlib.h>
#include <time.h>
int main( void )
{
srandom( (int) time( NULL ) );
...
}
> Thanks for the Help.
> (For some reason the help viewer
> crashes on my system)
There have been a few minor problems with the Info viewer in the past.
Please post details about your system and its configuration; also
specify what version of Info you use. You could also be a bit more
specific about what happens when Info crashes. :)
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| Plan: To find ANYONE willing to | http://www.cs.com/fighteer |
| play Descent 2 on DWANGO! | Tagline: <this space for rent> |
---------------------------------------------------------------------
- Raw text -