On the base of a statistical modelling method the computational algorithm of an ion current density distribution, a shape of a mass spectral peak obtained due to an ion beam movement relative to a receiver slit, a mass spectrometer transmission and resolution is described. The state of an ion beam at a source output slit is defined by the volume in a beam parameter six-dimensional space. Ion trajectories in electric and magnetic sector fields are computed analytically considering fringing effects. Resolution is determined by an equal intensity peak converging method.