The principle on which the ac generator operates is the Faraday's law of electromagnetic radiation.
When the armature rotates between the magnetic poles, the magnetic flux through it chnages. This change causes an emf to take place. THus an electric energy is produce.