Help me in solving PYGUESS00 problem

My issue

what is the correct syntax for random integer

My code

a=random.int

Learning course: Build Projects using Python
Problem Link: Project - Number guessing game Practice Problem in Build Projects using Python - CodeChef

random module does not contain int function method (functions available within a class are called as methods in Python), but it has randint() in place which might be what you are looking for. It is similar as randrange() function in accepting two arguments for lower to upper limit for generating random numbers except that the lower and upper bound are both inclusive in random randint method whereas the upper limit given is exclusive in randrange, which means that if random.randint(1, 100) is used, it can output any integer from 1-100 including numbers 1 and 100, whereas random.randrange(1, 100) will only return integer values from 1-99.

Syntax from documentation here: random — Generate pseudo-random numbers — Python 3.12.2 documentation