A stochastic process is a regenerative process if there is a random time τ such has the same distribution of and is independent of the past .