I've seen several sites using an image-based CAPTCHA program, where you select all the photos with specific content from a random group. I decided to write one, just to see if I could make it work. I have it working, but there's a random bug. Sometimes it will display all the images, sometimes, it will only display 3 on a line (below) instead of 4; but not because an image is missing. It just ignores the for-next loop. I also tried it with a Do While loop, but it ignores that as well on occasion. All the images have displayed at one time or another, so it's not a case of missing images. Can anyone spot the reason?