Based on the forum picked, it looks like you are looking for a image slider or viewer that shows images randomly. If so, (even if not), the logic is to have a set of images and number them. Pick random number within the range 0 to total image count. Based on the number show that image. You can have a trigger of button or a timer to pick random numbers at intervals when needed.