Update encoder.py
parent
45bc89c9c0
commit
1dbc2812b9
|
@ -61,7 +61,10 @@ class Encoder:
|
||||||
return self.__rand_int(buffer, "smallint", 1, 2)
|
return self.__rand_int(buffer, "smallint", 1, 2)
|
||||||
|
|
||||||
def rand_int(self, buffer):
|
def rand_int(self, buffer):
|
||||||
return self.__rand_int(buffer, "int", 2, 5)
|
current = self.__rand_int(buffer, "int", 2, 5)
|
||||||
|
if current < 100:
|
||||||
|
self.rand_int(self, buffer)
|
||||||
|
return current
|
||||||
|
|
||||||
def __rand_int(self, buffer, var, min, max):
|
def __rand_int(self, buffer, var, min, max):
|
||||||
iterator = self.helper.GetConfig("varcount")
|
iterator = self.helper.GetConfig("varcount")
|
||||||
|
|
Loading…
Reference in New Issue