I have code like this
from random import randint def rand(p): a = randint(0, p) b = randint(0, p) while (a != 501) and (b != 370): a = ran