I have an array of 30 images. My requirement is to fetch only 20 images every time, randomly, out of that 30 images. Each and every time fetch new 20 images.
Could anyone tell me how can I achieve this?
I tried this:
randIdx=arc4random()%[FrontsCards count];
but I get all 30. How can I get 20 images from a 30 image array?