Numerical Simulation of Seismicity In Rock Failure