as children of obedience, not conforming yourselves according to your former lusts as in your ignorance,
Paul tells us in Ephesians 1:0 that "we were chosen in Him before the foundation of the world" ( Ephesians 1:4 ). Here election is according to the foreknowledge of God.