Your PC will start guessing a number between 1 and the inserted number. If the guessed number is bigger than the random chosen one, the computer will start guessing numbers smaller than it, and the same goes for guessing a smaller number than the chosen one is.
Your PC will guess a random number between 1 and a million in about 25-30 tries :) If you want some statistics, then choose a bigger number, because when the chosen random number is either the max or min allowed, it can't guess it, and print "Almost" if the guess is either 1 or -1 of the answer. This problem almost never occurs with bigger numbers.