title: Random number generator without repeating results
body: <p>How does one make it so a random number generator does not repeat numbers over?
  I tried this but it keeps giving me repeated numbers</p>
  
  <pre><code>public int random(int a, int b,int c,int d,int e,int f,int g,int h,int i,int j,int k,int l){
   Random generator = new Random();
   int choice = generator.nextInt(12) + 1;
   if((choice!=b)|(choice!=c)|(choice!=d)|(choice!=e)|(choice!=f)|(choice!=g)|(choice!=h)|(choice!=i)|(choice!=j)|(choice!=k)|(choice!=l)){
       a=choice;
   }
   else{
       random(a,b,c,d,e,f,g,h,i,j,k,l);
  
  
   }
   System.out.println(choice);
  return a;
  </code></pre>