title: Generating a random index for an array
body: <p>I know this for normal integers, but is there for such a thing as indices?</p>
  
  <pre><code>Random dice = new Random();
  int n = dice.nextInt(6);
  System.out.println(n);
  </code></pre>