title: Generating Unique Random Numbers in Java
body: <p>I'm trying to get random numbers between 0 and 100. But I want them to be unique, not repeated in a sequence. For example if I got 5 numbers, they should be 82,12,53,64,32 and not 82,12,53,12,32
  I used this, but it generates same numbers in a sequence.</p>
  
  <pre><code>Random rand = new Random();
  selected = rand.nextInt(100);
  </code></pre>