def randnum(min, max): num = random.randint(a, b) return num randomnumber = randnum(0,10) print(randomnumber) #output: 5