Cylinder generator