It's hard for me to work like this , I know it may be the problem of the folder , But what happened , Please teach me
from random import randint
Just imported random Module randint, If you import the whole random The module needs to be written as
import random
If you want to call random Module random function , Need to be written
from random import random
Or when calling a function, write
random.random()