#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main(void)
{
int stime;
long ltime;
int thisRandomNumbe r;
int userinput;
int userTries;

/* get the current time and then send the random number */
ltime= time(NULL);
stime= (unsigned) ltime/2;
srand(stime);

//calculate...