 From 1857 to 1864, Randolph served as the rector of the University of Virginia, where he succeeded Andrew Stevenson.During the American Civil War, he held a colonel's commission in the Confederate Army.Most planters were excused from active service.