How might the diversity of potassium channels be generated?

How might the diversity of potassium channels be generated?