title: Load random Image from a directory using javafx
body: <p>How can I load a random image from a directory using javafx, (the files located in the directory have different names)</p>
  
  <p>Currently I am using the following to load a specific file</p>
  
  <pre><code>String image = JavaFXApplication4.class.getResource("/Images/Blue-Wallpaper.jpg").toExternalForm();
  </code></pre>