random pick utility method