I have this idea for my website that every time you visit the page, the background will be different. I want to get literally any picture from Google images and place it as
It can be done via Google Images though much customization is required so the script behaves as you intended (including setting up a delay to handle rate-limiting; Google has a rate-limit of 64 items per search request over API) here is a basic example using Google Images api:
However may I suggest instead: Random images from flickr, here is another basic code for that (sky is the limit):