As in title, seems to be a datatype issue that I can't get my head around. Any help would be appreciated.

randrange is choosing an index from 0-10, but it doesnt seem to return this as an integer value?

```
import random

numbers = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"] #long list of

def random_number():#function that generates a random number
    random_number = int
    index = random.randrange(0, 10)
    print("The number computer generated is " + numbers[index])

if __name__ == '__main__':
    random.seed()
    print("Welcome to Guess The Number game.\n"
          "The computer will generate a number from 1 to 10. \n"
          "You would have to guess it.\n"
          "Good luck!")
    random_number()
    number_guessed = int(input("Guess the number "))
    while number_guessed != random_number:
        if number_guessed > random_number:
            print("The number you guessed is bigger than the actual number.\n")
        if number_guessed < random_number:
            print("The number you guessed is smaller than the actual number.\n")
        if number_guessed == random_number:
            break
            print("Well done! You guessed the correct number. Cya!")

    sys.exit(0)```

```