How does a generator work?

It changes chemical energy to electrical energy.
It uses motion in a magnetic field to produce current.
It uses current in a magnetic field to produce motion.
It uses electric current to turn the blades of a turbine.

A generator works by converting mechanical energy into electrical energy. It does this by using motion in a magnetic field to produce a flow of electrons. The generator contains a rotating component, such as a rotor, which is turned by an outside force (such as steam, water, or wind). The rotor contains strong magnets that spin past wires (or coils of wire) that are wound around an iron core known as the stator. When the rotor spins, it creates a magnetic field around the wires, causing the electrons in the wire to move and produce an electric current. This current can then be used to power electrical devices or stored for later use in batteries.