Ground state of alloys by the method of the electron density functional