title: Java: Random long value in an interval
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2546078/java-random-long-number-in-0-x-n-range">Java: random long number in 0 &lt;= x &lt; n range</a>  </p>
  </blockquote>
  
  
  
  <p>I want to generate a random long value in an interval but it seems that the Random class nextLong() doesn't accept arguments like nextInt(). What can I do here?</p>