the distribution of crack in rock masses is characterized by certainty,which is the selfsimilarity.The present paper has set up a computer method for simulating crack network in rock masses.Directivity and zonation in crack distribution are considered in this method.Based on the theory of fractal geometry,an artificial crack networks generated.Finally,an example of simulation is given.The result is useful in studying the stability and penetrability of rock masses.