Answer:
In your program tou are using randint function without importing it.
So you should import it by:
Import random
or
from random import randint
So your code should be like:
import random
def random():
a = random.randint (0, x+1)
b = random.randint (0, y+1)
c = random.randint (0, z+1)
outer_function(a,b,c)
if outer_function(a,b,c) is True:
break
if outer_function(a,b,c) is False:
random()
or
from random import randint
def random():
a = random.randint (0, x+1)
b = random.randint (0, y+1)
c = random.randint (0, z+1)
outer_function(a,b,c)
if outer_function(a,b,c) is True:
break
if outer_function(a,b,c) is False:
random()
Hope you understand this.
Happy coding.