This is in no way any assignment. I am new and i'm attempting to learn some C.
I was just wondering on some sort of basic idea to make a guessing game. Say you have to pick a number between 1 and 1000 and the number is randomly chosen by the computer (The part I can NOT get). You then input the number into the program and it tells you higher, lower, or if you have won. After winning, the program exits. But untill you have won, the game loops. Just somethin i tried doin after learning some things but i couldn't get the computer to pick a random number and have you guess it. Just wonderin if someone could gimmie a little help there.