Phase Transitions and Random Matrices