Unlike simple "code databases," which are just lists of pre-calculated codes, a generates the code on the fly using an algorithm.
Example pseudocode (simplified):