Код: Выделить всё
nextDouble(startInclusive, endExclusive)
Код: Выделить всё
public static float nextFloat(float startInclusive, float endExclusive) {
return (float) nextDouble(startInclusive, endExclusive);
}
Подробнее здесь: https://stackoverflow.com/questions/789 ... e-to-float