Added a function for selection populations from a distribution