The device consists of two floats having different natural oscillation frequencies. The floats are linked by a rocking rod. The floats are set into a bobbing motion relative to one another by oscillations on the surface of a body of water. A mechanism is provided for translating the rocking motion of the rocking rod into a rotary motion of a fly wheel. The fly wheel can be utilized to drive a generator.