Add functions for sampling n(z) and generating randome target lists