sim_logistic function

Closure for simulating logistic curve