The influence of random interlayer exchange on the phase states of the simplest magnetic heterostructure consisting of two ferromagnetic Ising layers with large interaction radius is studied. It is shown that such system can exist in three magnetic phases: ferromagnetic, antiferromagnetic and ferrimagnetic. The possible phase diagrams and temperature dependencies of thermodynamic parameters are described. The regions of existence of the magnetic phases in external magnetic field are determined at zero temperature.