draw function

Generic function for simulating from NHPPPs given the intensity function or the cumulative intensity function.