DNA sequence symmetries from randomness: the origin of the Chargaff’s second parity rule