td_sim function

Simulation of a diversity-dependent-like time-dependent process