Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 93953 invoked from network); 29 Aug 2005 23:48:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Aug 2005 23:48:28 -0000 Received: (qmail 48532 invoked by uid 500); 29 Aug 2005 23:48:26 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 48508 invoked by uid 500); 29 Aug 2005 23:48:25 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 48495 invoked by uid 500); 29 Aug 2005 23:48:25 -0000 Received: (qmail 48492 invoked by uid 99); 29 Aug 2005 23:48:25 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 29 Aug 2005 16:48:25 -0700 Received: (qmail 93916 invoked by uid 65534); 29 Aug 2005 23:48:25 -0000 Message-ID: <20050829234825.93915.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r264659 - /jakarta/commons/proper/math/branches/MATH_1_1/src/java/org/apache/commons/math/random/RandomAdaptor.java Date: Mon, 29 Aug 2005 23:48:24 -0000 To: commons-cvs@jakarta.apache.org From: psteitz@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: psteitz Date: Mon Aug 29 16:48:21 2005 New Revision: 264659 URL: http://svn.apache.org/viewcvs?rev=264659&view=rev Log: Javadoc. Modified: jakarta/commons/proper/math/branches/MATH_1_1/src/java/org/apache/commons/math/random/RandomAdaptor.java Modified: jakarta/commons/proper/math/branches/MATH_1_1/src/java/org/apache/commons/math/random/RandomAdaptor.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/math/branches/MATH_1_1/src/java/org/apache/commons/math/random/RandomAdaptor.java?rev=264659&r1=264658&r2=264659&view=diff ============================================================================== --- jakarta/commons/proper/math/branches/MATH_1_1/src/java/org/apache/commons/math/random/RandomAdaptor.java (original) +++ jakarta/commons/proper/math/branches/MATH_1_1/src/java/org/apache/commons/math/random/RandomAdaptor.java Mon Aug 29 16:48:21 2005 @@ -54,64 +54,118 @@ return new RandomAdaptor(randomGenerator); } - /* (non-Javadoc) - * @see java.util.Random#nextBoolean() + /** + * Returns the next pseudorandom, uniformly distributed + * boolean value from this random number generator's + * sequence. + * + * @return the next pseudorandom, uniformly distributed + * boolean value from this random number generator's + * sequence */ public boolean nextBoolean() { return randomGenerator.nextBoolean(); } - /* (non-Javadoc) - * @see java.util.Random#nextBytes(byte[]) + /** + * Generates random bytes and places them into a user-supplied + * byte array. The number of random bytes produced is equal to + * the length of the byte array. + * + * @param bytes the non-null byte array in which to put the + * random bytes */ public void nextBytes(byte[] bytes) { randomGenerator.nextBytes(bytes); } - /* (non-Javadoc) - * @see java.util.Random#nextDouble() - */ + /** + * Returns the next pseudorandom, uniformly distributed + * double value between 0.0 and + * 1.0 from this random number generator's sequence. + * + * @return the next pseudorandom, uniformly distributed + * double value between 0.0 and + * 1.0 from this random number generator's sequence + */ public double nextDouble() { return randomGenerator.nextDouble(); } - /* (non-Javadoc) - * @see java.util.Random#nextFloat() + /** + * Returns the next pseudorandom, uniformly distributed float + * value between 0.0 and 1.0 from this random + * number generator's sequence. + * + * @return the next pseudorandom, uniformly distributed float + * value between 0.0 and 1.0 from this + * random number generator's sequence */ public float nextFloat() { return randomGenerator.nextFloat(); } - /* (non-Javadoc) - * @see java.util.Random#nextGaussian() + /** + * Returns the next pseudorandom, Gaussian ("normally") distributed + * double value with mean 0.0 and standard + * deviation 1.0 from this random number generator's sequence. + * + * @return the next pseudorandom, Gaussian ("normally") distributed + * double value with mean 0.0 and + * standard deviation 1.0 from this random number + * generator's sequence */ public double nextGaussian() { return randomGenerator.nextGaussian(); } - /* (non-Javadoc) - * @see java.util.Random#nextInt() + /** + * Returns the next pseudorandom, uniformly distributed int + * value from this random number generator's sequence. + * All 232 possible int values + * should be produced with (approximately) equal probability. + * + * @return the next pseudorandom, uniformly distributed int + * value from this random number generator's sequence */ public int nextInt() { return randomGenerator.nextInt(); } - /* (non-Javadoc) - * @see java.util.Random#nextInt(int) + /** + * Returns a pseudorandom, uniformly distributed int value + * between 0 (inclusive) and the specified value (exclusive), drawn from + * this random number generator's sequence. + * + * @param n the bound on the random number to be returned. Must be + * positive. + * @return a pseudorandom, uniformly distributed int + * value between 0 (inclusive) and n (exclusive). + * @throws IllegalArgumentException if n is not positive. */ public int nextInt(int n) { return randomGenerator.nextInt(n); } - /* (non-Javadoc) - * @see java.util.Random#nextLong() + /** + * Returns the next pseudorandom, uniformly distributed long + * value from this random number generator's sequence. All + * 264 possible long values + * should be produced with (approximately) equal probability. + * + * @return the next pseudorandom, uniformly distributed long + *value from this random number generator's sequence */ public long nextLong() { return randomGenerator.nextLong(); } - /* (non-Javadoc) - * @see java.util.Random#setSeed(long) + /** + * Sets the seed of the underyling random number generator using a + * long seed. Sequences of values generated starting with the + * same seeds should be identical. + * + * @param seed the seed value */ public void setSeed(long seed) { if (randomGenerator != null) { // required to avoid NPE in constructor --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org