title: Generate random number in range(java)
body: <p>To generate a random number in a given range, we can write:</p>
  
  <p><code>Random().nextInt((max - min) + 1) + min</code>.</p>
  
  <p>I would like to know that is it equal to <code>Random().nextInt(max + 1) - min</code> OR not.</p>