Pardon this completely naive question. I am wondering why there are net magnetic fields on the Sun. Isn't there an equal number of protons - hydrogen nuclei - to electrons? Is there a separation of protons and electrons in different parts of the Sun so that there can be net currents? or are magnetic fields fleeting and essentially random?