srand( (unsigned)time( NULL ) ); /*rand seeded with time*/
x=(rand() %(5+1)); /* x takes value of rand */
/*rand limited to five*/
/*change to make it harder, i.e 30+1 */
printf ("\n Please enter a number between 1 and 5");
printf ("\n to try and pick the same number as the computer!: ");