title: Generate Random Numbers in Array
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/196017/unique-random-numbers-in-o1">Unique random numbers in O(1)?</a>  </p>
  </blockquote>
  
  
  
  <p>I am new in Java. I want to generate a set of random numbers from a given set and the numbers must also not repeat. For example, the possible numbers are <code>[0,1,2,3]</code>, I want to get three random unique numbers stored in an Array. Ex. <code>[0,2,1], [2,3,1], [0,3,2]</code> etc.</p>