Random copolymers with long range interaction in the equilibrium state