title: show random image on Processing
body: <p>I'm really noob on processing and programing and I can't figure it out how to show my images at random. </p>
  
  <p>I'm loading the images in setup with the PImage name img0, img1, img2 and then </p>
  
  
  
  <pre class="lang-java prettyprint-override"><code>image("img" + random(3), 0, 0); 
  </code></pre>
  
  <p>But it does't work, coz processing wait for a PImage argument, and the string plus a number isn't. </p>
  
  <p>And I know for shure there must be some better way than:</p>
  
  <pre class="lang-java prettyprint-override"><code>int randomNumber = random(3);
  
  if(randomNumber == 0 ){ 
     image(img0,0,0);
  } 
  if(randomNumber == 1 ){ 
      image(img1,0,0);
  } 
  if(randomNumber == 2 ){
      image(img2,0,0);
  } 
  </code></pre>
  
  <p>But I haven't found it. </p>
  
  <p>Any thoughts?
  thanks!</p>