title: get multiple random values from ArrayList HashMap
body: <p>I want to get some specific number random values from ArrayList</p>
  
  <pre><code>final ArrayList&lt;HashMap&lt;String, String&gt;&gt; menuItems = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
  
  for (int i = 0; i == 4; i++) {
  
          index = random.nextInt(menuItems.size());
          HashMap&lt;String, String&gt; getitem = menuItems.get(index);
          System.out.println(getitem.get(KEY_NAME));
      }
  </code></pre>
  
  <p>Nothing is printing out.</p>
  
  <p>Code in loop works if i use it outside loop, but since i need multiple values, i use loop and it doesnt work. </p>