Thermodynamic limit for the distribution function of the effective field of random ising models on the linear chain or on the Cayley tree