code: def move(self):
          
          k = random.choice(self.keys)
          multiplier = random.choice((0.95, 1.05))
  
          invalid_key = True
          while invalid_key:
              # make sure bias doesn't exceed 1.0
              if k == "bias":
                  if self.state[k] > 0.909:
                      k = random.choice(self.keys)
                      continue
  
              invalid_key = False
  
          newval = self.state[k] * multiplier
          self.state[k] = newval
docs: Create a state change.