def randomize(self):
        """
        Randomize this immediate to a legal value
        """
        self.value = randint(self.min(), self.max())
        if self.lsb0:
            self.value = self.value - (self.value % 2)
def randomize ( self ) : self . value = randint ( self . min ( ) , self . max ( ) ) if self . lsb0 : self . value = self . value - ( self . value % 2 )
Randomize this immediate to a legal value