Python Games of Chance https://www.codecademy.com/practice/projects/games-of-chance

Hi, I am new here and starting to learn how to code in Python. I have arrived in the Games of Chance project by codecademy.
I am stuck because I cannot generate a random number.
Here I paste my work and the error I am dealing with.

Can somebody help tell me what is wrong with this, thank you so much

image

Check spelling. It is random.randint(), not random.radint().

Aside

If one doesn’t like too much typing, and perhaps would like a command that better matches the role, we could write,

from random import randint as toss    # custom alias

flip = toss(0, 1)
3 Likes