X-ray diffraction from 1d disordered atomic structure by means of Monte Carlo technique