NOVELTY - The device (100) an electric generator whose rotor (140) is connected to a generator shaft (120), via a free-wheel (142), so that rotation of the rotor in a rolling direction of the shaft is accelerated, if variable force is greater than restoring force, and the rotor is continued to rotate in an unwinding direction. A stator (150) of the electric generator is connected to a generator housing (110), when variable force is smaller than restoring force, and a rope-like component (130) is rolled opposite to a rolling direction.    USE - Electrical energy generating device such as wave energy converter, wave power plant, wave energy generator and wind power plant. Can also be sued in wind turbine and tidal turbine applications.    ADVANTAGE - Since the free-wheel of the rotor can be rotated in the same direction, and the axle can be rotated in the opposite direction, the electrical energy efficiency can be increased significantly. Since the generator housing can be designed as the vibrating portion, and the varying force can be generated by variable the buoyancy force, the high energy yield can be obtained, and the continuous energy yield can be realized. Since the penetration of the air into the generator housing can be avoided, the reliability or life of the electrical energy generating device can be significantly increased. Since other end of the rope-like component can be connected with the end portion of the bellows, the rope-like component can be protected against environmental influences effectively. Since the passing of the rope-like component to the outside through the opening in the generator housing can be avoided, the use of the seal between the generator housing and the rope-like component can be avoided. The increased power production can be achieved, and the generator cost can be reduced. Since the device can be controlled easily in any sea state, the reliability of the device can be improved.    DETAILED DESCRIPTION - The device has the generator shaft that is rotatably arranged in the generator housing. One end of the rope-like component is attached to the shaft, and other end of component is connected with a counter mass portion (102) directly or indirectly. The shaft is adapted to exert restoring force on the component, so that the component is wound on shaft. Force acted on housing is made smaller than restoring force, if variable of the counter mass portion is directed away, so that component is rolled from shaft. The force acted on the housing is made greater than restoring force, if variable of counter mass portion is faced away. An INDEPENDENT CLAIM is included for a method of generating electric energy.    DESCRIPTION OF DRAWING(S) - The drawing shows a cross-sectional view of the electrical energy generating device.    Electrical energy generating device (100)    Counter mass portion (102)    Generator housing (110)    Generator shaft (120)    Rope-like component (130)    Rotor (140)    Free-wheel (142)    Stator (150)