random_functs.c
spider/random_functs.c · 273 B
From the archive spider.tar.gz
Download the archive « Back to the archive contents
#include "random_functs.h"
void random_seed (void)
{
long timeval;
#ifdef FUNCTIONS
puts ("**random_seed");
#endif
time (&timeval);
srandom ((int) timeval);
}
int random_int (void)
{
#ifdef FUNCTIONS
puts ("**random_int");
#endif
return ((int) random());
}