The random image generator concept is mostly used for advertisement. The images you see on a website generating randomly, are already stored in a database or an array. These images display to the user within a regular time interval or change by a click. You can also provide the address of an image directly from the internet. In this chapter, you will learn how to generate random images on a webpage with the help of JavaScript. So, we will create different random image generator using JavaScript and HTML source code. Firstly, it requires an array to contain the URLs of images to be displayed on the webpage. This is a random image generator that picks a random picture from the pictures provided by spinning the wheel. If you prefer the image-based picker wheel, you should use this. After spinning the wheel, the random image will be selected. You also have the option to eliminate, accumulate or do nothing to the photo selected.