def RangeWORange(a, b, c, d):
    r = random.randrange(c, d - 2 * b)
if r >= a - b:
    return r + 2 * b
else:
    return r
Can Python generate a random number that excludes a set of numbers, without using recursion?