A Stochastic Model of the Repetitive Activity of Neurons