Generating Random.nextFloat() with parameter error
<p>I am trying to generate a random float with this code.</p>

<pre><code> float rangeDuration2 = maxDuration - minDuration;
</code></pre>

<p>But for some reason java isnt letting me with this line as i would with .nextInt()</p>

<blockquote>
  <p>The method nextFloat() in the type Random is not applicable for the arguments (float)</p>
</blockquote>

<pre><code> float actualDuration2 = rand.nextFloat(rangeDuration2) + minDuration;
</code></pre>

<p>Anyway around this?</p>
