code: def update(self, value):
      
      super(UniformSample, self).update(value)
  
      self.count += 1
      c = self.count
      if c < len(self.sample):
        self.sample[c-1] = value
      else:
        r = random.randint(0, c)
        if r < len(self.sample):
          self.sample[r] = value
docs: Add a value to the sample.