The inherent inhomogeneity of potential on the doped-semiconductor surface during the formation of equilibrium diffusion distribution for an electroactive impurity in the space-charge layers is discussed. The characteristic random-potential values are determined in the case of nondegenerate surface electron gas. The dependence of these inhomogeneities on the surface and bulk parameters is shown.