docs: def percent_chance(self, pct):
          """Given a ``pct``% chance of something happening right now, decide at
          random whether it actually happens, and return ``True`` or
          ``False`` as appropriate.
  
          Values not between 0 and 100 are treated as though they
          were 0 or 100, whichever is nearer.
  
          """
          if pct <= 0:
              return False
          if pct >= 100:
              return True
          return pct / 100 < self.random()