Calculation of the Electronic Density of States and the Electric Conductivity of Random Alloys in the Coherent Potential Approximation