Selaa lähdekoodia

FastMath.nextRandomFloat: correct for [min, max)

Wyatt Gillette 3 kuukautta sitten
vanhempi
commit
1e4cb119a0
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      jme3-core/src/main/java/com/jme3/math/FastMath.java

+ 2 - 2
jme3-core/src/main/java/com/jme3/math/FastMath.java

@@ -850,10 +850,10 @@ public final class FastMath {
     }
 
     /**
-     * Generates a pseudorandom {@code float} in the range [min, max] (inclusive).
+     * Generates a pseudorandom {@code float} in the range [min, max)
      *
      * @param min The lower bound (inclusive).
-     * @param max The upper bound (inclusive).
+     * @param max The upper bound (exclusive).
      * @return A random {@code float} value within the specified range.
      */
     public static float nextRandomFloat(float min, float max) {