title: Display random image when refresh
body: <p>I am trying to figure out how to use the code posted by Nicholas Lim in <a href="https://stackoverflow.com/questions/8913479/random-images-on-click">Random images on click</a> to display random post when page refreshes.</p>
  
  <p>I am using wordpress for my website, the url structure does not contain .php extension. So i won't be able to use it to display random image in my WP post, am i right?</p>
  
  <p>If it is possible, could anyone please guide me step by step how to use the code.</p>
  
  <p>I spent much time reading about this, but still haven't understood.</p>
  
  <p>Thank you in advanced</p>