You can use just about any motor to generate electric current, if it is wired correctly and you follow specific rules for its use. Modern AC induction motors are quite simple to wire as alternating current generators, and most will begin generating electricity the first time you use them.
What type of motor can generate electricity?
The very large a.c. generators in power stations are called alternators. In them, the assembly of field coils rotates, driven by a turbine, and is called the rotor. The armature coils, in which the output voltage is generated, are held in a frame outside the rotor and remain stationary; this is the stator.