import random
def randint_se(min, max, exceptions):
possible = []
exceptions.sort()
for number in range(min, max+1):
count = 0
for exception_number in exceptions:
if number == exception_number:
break
count += 1
if count == len(exceptions):
possible.append(number)
return random.choice(possible)