Nuclear rotation and the random-phase approximation