So I want to fetch a varying number of entities that match randomly generated index numbers that are associated to the entity.
So i get a count of entities in a given set and i generate a random collection of nsnumbers within that range. now i need to pull out the entities whose index match those generated numbers ideally in a single fetch request. I think I need to write a pretty slick predicate but I'm confused as to how to account for the varying number of random selections. Sometimes I need six entities pulled other times I may need 30. How do I formulate a predicate with a varying requirement like this?
Thanks,
Nick