The mean squared writhe of alternating random knot diagrams