Thanks for the reply J.D.
The initial code was taken from another post that just wanted to shuffle the images. I am looking to shuffle images in a repeater, but only for 16 images at a time.
Your code seems simpler and limits the images at 16, but actually doesn’t shuffle the images. I only included your code and took out the previous one. Something I am doing wrong ?