docs: def generate_func(self, table):
          """
          Generates a random table based mini-hashing function.
          """
  
          # Ensure that `self` isn't suddenly in the closure...
          n = self.n
  
          def func(word):
              return sum(x * ord(c) for x, c in zip(table, word)) % n
  
          return func