diff --git a/src/main/java/org/apache/commons/math3/random/RandomData.java b/src/main/java/org/apache/commons/math3/random/RandomData.java index 126da3196..9ba51672e 100644 --- a/src/main/java/org/apache/commons/math3/random/RandomData.java +++ b/src/main/java/org/apache/commons/math3/random/RandomData.java @@ -192,7 +192,7 @@ public interface RandomData { * (exclusive) * @throws NumberIsTooLargeException if {@code lower >= upper} * @throws NotFiniteNumberException if one of the bounds is infinite - * @throws NotANumberException if one of the bounds is infinite + * @throws NotANumberException if one of the bounds is NaN */ double nextUniform(double lower, double upper) throws NumberIsTooLargeException, NotFiniteNumberException, NotANumberException; @@ -218,7 +218,7 @@ public interface RandomData { * {@code true} * @throws NumberIsTooLargeException if {@code lower >= upper} * @throws NotFiniteNumberException if one of the bounds is infinite - * @throws NotANumberException if one of the bounds is infinite + * @throws NotANumberException if one of the bounds is NaN */ double nextUniform(double lower, double upper, boolean lowerInclusive) throws NumberIsTooLargeException, NotFiniteNumberException, NotANumberException; diff --git a/src/main/java/org/apache/commons/math3/random/RandomDataGenerator.java b/src/main/java/org/apache/commons/math3/random/RandomDataGenerator.java index ea113b759..5b4308fe0 100644 --- a/src/main/java/org/apache/commons/math3/random/RandomDataGenerator.java +++ b/src/main/java/org/apache/commons/math3/random/RandomDataGenerator.java @@ -517,7 +517,7 @@ public class RandomDataGenerator implements RandomData, Serializable { *

* @throws NumberIsTooLargeException if {@code lower >= upper} * @throws NotFiniteNumberException if one of the bounds is infinite - * @throws NotANumberException if one of the bounds is not a number + * @throws NotANumberException if one of the bounds is NaN */ public double nextUniform(double lower, double upper) throws NumberIsTooLargeException, NotFiniteNumberException, NotANumberException { @@ -537,7 +537,7 @@ public class RandomDataGenerator implements RandomData, Serializable { * * @throws NumberIsTooLargeException if {@code lower >= upper} * @throws NotFiniteNumberException if one of the bounds is infinite - * @throws NotANumberException if one of the bounds is not a number + * @throws NotANumberException if one of the bounds is NaN */ public double nextUniform(double lower, double upper, boolean lowerInclusive) throws NumberIsTooLargeException, NotFiniteNumberException, NotANumberException {