Freezing transition of random heteropolymers consisting of an arbitrary set of monomers.