def generate(self):
        r1 = random.random()
        if not self.required and self.not_present_prob < r1:
            raise NotGeneratedException

        r2 = random.random()
        if self.null and r2 < self.null_prob:
            value = None
        elif self.blank and r2 < self.null_prob + self.blank_prob:
            value = self.blank_value
        else:
            value = self._generate_value()

        return value
dataset/ETHPy150Open se7entyse7en/mongo-dynamic-fixture/mongo_dynamic_fixture/fields.py/BaseField.generate/swapped operands of `<`