Multifocal multiphoton microscopy(MMM)has greatly improved the utilization of excitationlight and imaging speed due to parallel multiphoton excitation of the samples and simultaneousdetection of the signals,which allows it to perform three-dimensional fast fuorescence imaging.Stochastic scanming can provide continuous,uniform and high-speed excitation of the sample,which makes it a suitable scanning scheme for MMM.In this paper,the graphical programminglanguage,LabVIEW is used to achieve stochastic scanning of the two-dimensional galvo scanmers by using white noise signals to control the a and y mirrors independently.Moreover,thestochastic scanning process is simulated by using Monte Carlo method.Our results show that MMM can avoid oversampling or subsampling in the scanning area and meet the requirements of uniform sampling by stochastically scanning the individual units of the N×N foci array.Therefore,continuous and umiform scaning in the whole field of view is implemented.