title: How to generate Random pair without repeating the same pair again in android
body: <p>Is this possible or not?</p>
  
  <p>Can anyone tell me how to generate a random pair when I call the app?</p>
  
  <p>for example: i have 0-5 images and i have 10 buttons when i call the app the images are paired like this</p>
  
  <pre><code>        1-9=image0
          2-7=image3
          3-8=image2
          4-6=image4
          5-10=image1
  </code></pre>
  
  <p>If anyone known the answer please post the answer. it's very useful for game when you creating a gaming concept</p>