output and input for random phase arrangement of 17 and 23