/***************************************************************************** Gestionnaire de terminal: random.c (c) Pierre ADRIAANS 1994 *****************************************************************************/ #include #include #include #include "random.h" void srand(unsigned); void Randomize(void) { time_t seed; time(&seed); srand((unsigned)seed); } int Random(int Max) { return(rand() % Max); }