How do I generate a random value between two numbers
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/363681/java-generating-random-number-in-a-range">Java: generating random number in a range</a>  </p>
</blockquote>



<p>How do I generate a random value between two numbers. <a href="http://download.oracle.com/javase/6/docs/api/java/util/Random.html#nextInt%28int%29" rel="nofollow">Random.nextInt()</a> gives you between 0 and the passed value. How do I generate a value between minValue and a maxValue</p>
