def update(self, value):
        self.counter += 1
        new_count = self.counter.value

        if new_count <= len(self.values):
            self.values[new_count - 1] = value
        else:
            index = random.uniform(0, new_count)
            if index < len(self.values):
                self.values[int(index)] = value
dataset/ETHPy150Open cyberdelia/metrology/metrology/stats/sample.py/UniformSample.update/original