Scale invariance and self-averaging in disordered systems