I'm making a little game where the program chooses a random number, and then you have ti input a number to see if you got the answer wrong or right. heres the code i have so far:#include
int num, actualvalue, i;
printf("This is a small game called Guess The Number.
You have 10 tried to guess the magic number.
for(i=1; i<11 && num != actualvalue; i++)
printf("Guess a number: ");
if(num<actualvalue) printf("The number you have inputed is lower than the magic number. Try again.
if(num>actualvalue) printf("The number you have inputed is higher than the magic number. Try again.
the part i dont understand is how can i make the computer generate a number from 1-250? thx in advance