The generator effect, also known as electromagnetic induction, involves the change in magnetic field that a wire experiences as it moves through it, which creates a potential difference.
The strength of the magnetic field, the speed of the wire or the magnets, and the number of turns in the coil can be altered to change the size of the induced potential difference and the current it generates.
The concept of electromagnetic induction also applies to the removal of a single magnet into and out of a coil of wire, which induces a potential difference in the coil and generates a current when the circuit is complete.