Heights of polynomials and random matrix theory