Generator and electric installation comprising a tower of lighting powered by a generator such