class RandomInt(int):

    def __call__(self):
        return random.randint(1, 100)

def __add__(self, other):
    return self() + other

def __mul__(self, other):
    return self() * other

def __div__(self, other):
    return self() / other

def __sub__(self, other):
    return self() - other

def __repr__(self):
    return str(self())
Рандомизация целочисленного поведения