def random_int ( self , min = 0 , max = 9999 , step = 1 ) : return self . generator . random . randrange ( min , max + 1 , step )
python generate random integer with step interval
Returns a random integer between two values .
def random_int(self, min=0, max=9999, step=1):
        """
        Returns a random integer between two values.

        :param min: lower bound value (inclusive; default=0)
        :param max: upper bound value (inclusive; default=9999)
        :param step: range step (default=1)
        :returns: random integer between min and max
        """
        return self.generator.random.randrange(min, max + 1, step)