A generator is the primary device used for the production of electric current.