Average crossing number and writhe of knotted random polygons in confinement