#include #include #include #define RANGE 100 //set guessing range #define TRIES 6 //give 'em six tries to guess int rnd(int range); void seedrnd(void); void main() { int guessme,guess,t; seedrnd(); //seed the randomizer guessme=rnd(RANGE)+1; //get the number to guess printf("GUESS!?!\nGuess the random number.\n"); printf("I'm thinking of a number \ between 1 and %i.\n",RANGE); printf("Can you guess it in %i tries?\n",TRIES); for(t=1;t<=TRIES;t++) //give them TRIES tries { printf("Guess #%i:",t); scanf("%i",&guess); //get their guess if(guess==guessme) //They guess correctly { printf("You got it!\n"); break; //stop here } else if(guess