Method to do sampling for Enumerable objects in specified rate