digging deep in my (partially destroyed) memory,
electrons always swing around the core of an atom in pairs
so, if there's only one electron (for instance, H) electrons of other atoms are being attracted, and then it kinda works like gear wheels.
so I guess the direction of the electrons around the core is determined by it's surrounding variables.
but correct me if necessary, KennyR :-)