Electronic structure of noble or transition metal based alloys