def generate(self, minval, maxval, steps): vals = [round(rt(minval, maxval), 5) for _ in range(steps)] for val in vals: yield val