#include <stdlib.h>		/* for srandom() */
#include <time.h>		/* for time() */


/* Return 1 if slip, 0 if not.  For type 2 dogs.*/
int slip(double t) {
   double x;

   x = 30.0 / ((double) (random() % 30));

   if (t > x)
      return(1);
   else
      return(0);
}

