title: Random Numbers in Android
body: <p>I know there are a lot of topics about random number generation in Android and Java in general. I am currently programming an app that rolls 5 dices. I currently use <code>Random()</code> to generate these numbers. This is my code:</p>
  
  <pre><code>Random r = new Random();
  
  a[0] = r.nextInt(6)+1;
  a[1] = r.nextInt(6)+1;
  a[2] = r.nextInt(6)+1;
  
  d[0] = r.nextInt(6)+1;
  d[1] = r.nextInt(6)+1;
  </code></pre>
  
  <p>Documentation says that <code>Random()</code> without custom seed is sufficient for most tasks. Is it still random enough when I generate 5 random numbers in such short time? Is there any difference if I generate a new <code>Random()</code> object after each random number?</p>