Radical halogenation
Light splits a halogen into atoms that pull hydrogens off an alkane in a chain, and because a bromine atom is choosy and a chlorine atom is not, bromination goes almost only to the carbon that gives the most stable radical.
From Organic Chemistry.