Javascript - Display Random Images On Load | Free Source ... Between the apostrophes following "FirstPart =" and "LastPart =", put the first and last part of your image tag. A Random Quote Generator is capable of pulling quotes randomly from an API, a database, or simply from an array. Specific Image. i need a very simple code to make it so my affilates button shuffle through every time you refresh or go to another part of the site. It uses Unsplash.com's API which is a bit "hit and miss", so it won't be perfect. The latest version is 5.0, released June 20, 2008, now with support for WordPress 2.5 galleries, and still backwards compatible with 2.3, 2.2, 2.1, and 1.5.