import random
i = 0

while i < 10:
    random_number = random.randint(1,4)
    i = i + 1
    guessed_number = int(raw_input("Guess an integer between 1 and 4: "))
    print 'random number is', random_number
    if guessed_number != random_number:
        print 'Your guess was not correct. Please try again.'

