Mean-field solution of the random Ising model on the dual lattice