Skip to content

Commit 1e4cb11

Browse files
authored
FastMath.nextRandomFloat: correct for [min, max)
1 parent f136321 commit 1e4cb11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -850,10 +850,10 @@ public static float nextRandomFloat() {
850850
}
851851

852852
/**
853-
* Generates a pseudorandom {@code float} in the range [min, max] (inclusive).
853+
* Generates a pseudorandom {@code float} in the range [min, max)
854854
*
855855
* @param min The lower bound (inclusive).
856-
* @param max The upper bound (inclusive).
856+
* @param max The upper bound (exclusive).
857857
* @return A random {@code float} value within the specified range.
858858
*/
859859
public static float nextRandomFloat(float min, float max) {

0 commit comments

Comments
 (0)