Selecting r objects from n distinct objects