You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ce...@apache.org on 2012/01/09 08:48:28 UTC

svn commit: r1229048 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/random/RandomDataImpl.java

Author: celestin
Date: Mon Jan  9 07:48:27 2012
New Revision: 1229048

URL: http://svn.apache.org/viewvc?rev=1229048&view=rev
Log:
Javadoc (MATH-730).

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/random/RandomDataImpl.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/random/RandomDataImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/random/RandomDataImpl.java?rev=1229048&r1=1229047&r2=1229048&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/random/RandomDataImpl.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/random/RandomDataImpl.java Mon Jan  9 07:48:27 2012
@@ -590,6 +590,8 @@ public class RandomDataImpl implements R
      * @param upper the upper bound.
      * @return a uniformly distributed random value from the interval (lower, upper)
      * @throws NumberIsTooLargeException if {@code lower >= upper}
+     * @throws MathIllegalArgumentException if one of the bounds is infinite of
+     * {@code NaN}
      * or either bound is infinite or NaN
      */
     public double nextUniform(double lower, double upper) {
@@ -614,7 +616,9 @@ public class RandomDataImpl implements R
      *            whether the lower bound is included in the interval
      * @return a uniformly distributed random value from the interval (lower,
      *         upper)
-     * @throws NumberIsTooLargeException if {@code lower >= upper}.
+     * @throws NumberIsTooLargeException if {@code lower >= upper}
+     * @throws MathIllegalArgumentException if one of the bounds is infinite of
+     * {@code NaN}
      * @since 3.0
      */
     public double nextUniform(double lower, double upper, boolean lowerInclusive) {