title: Java.util.random - "Bound must be positive"
body: <p>I get this error:</p>
  
  <pre><code>java.lang.illegalException:
  bound must be posotive
  </code></pre>
  
  <p>in the following line of code:</p>
  
  <pre><code>Random random = new Random();
  Item randomItem;
  randomItem = new Item("NAME_HERE", "DESCRIPTION_HERE", 0000);
  int randomNumber = random.nextInt(randomItem.randomNames.size());   *** ERROR HERE?!
  randomItem.name = randomItem.randomNames.get(randomNumber);
  addItem(randomItem);
  </code></pre>
  
  <p>This only happens the SECOND time i call the above method. It looks like (if i try print out the size of the randomNames arraylist, that it actually gets to 0. But it should not... Here is the randomItem, where the randomNames arraylist is created.. Nothing else but the above code has influence. ????</p>
  
  <pre><code>public ArrayList&lt;String&gt; randomNames;
  randomNames.add("Key");
  randomNames.add("Rock");
  randomNames.add("Balloon");
  randomNames.add("Boot");
  randomNames.add("Knife");
  randomNames.add("Pencil");
  </code></pre>