title: Java - how to create a random number from an array of values
body: <p>on the first iteration- I want to create a random number from 0..10</p>
  
  <p>This is how I've implement it- </p>
  
  <pre><code> int generator= (int)(Math.random() * (10));
  </code></pre>
  
  <p>On the first iteration I want to create another random number, but without one of the values.
  For example I would like the random number without the number 4.
  only 1,2,3,5,6,7,8,9,0</p>
  
  <p>How can I remove one of the values from the numbers 0..10 when I generate a random number?</p>