I am trying to generate a random float with this code.
float rangeDuration2 = maxDuration - minDuration;
But for some reason java isnt letting me with this line as i would with .nextInt()
The method nextFloat() in the type Random is not applicable for the arguments (float)
float actualDuration2 = rand.nextFloat(rangeDuration2) + minDuration;
Anyway around this?
This should do the trick.