import random
random_number = random.randrange(1,101)
guess = int(input("Guess the random number in the range 1-100: "))
while (guess != random_number):
if (guess > random_number):
print("Too high")
else:
print("Too low")
guess = int(input("Guess the random number in the range 1-100: "))
print("Correct! The random number was ", random_number)