 An alternating current is induced in the loops of wire by Faraday's law of induction each time the magnet slides through.This type of generator is used in the Faraday flashlight.Larger linear electricity generators are used in wave power schemes.