Variable extragalactic objects: identification and analysis of a complete sample to B = 21