Floating generators are used in the sea to harness wave energy.
wave energy
Wave power is the capture of energy of wind waves to do useful work – for example, electricity generation, water desalination, or pumping water. A machine that exploits wave power is a wave energy converter .