8164923: Error in the documentation for java.lang.Random
Reviewed-by: rriggs
This commit is contained in:
parent
a9dccaf0a2
commit
c9b965110f
@ -187,7 +187,7 @@ class Random implements java.io.Serializable {
|
|||||||
*
|
*
|
||||||
* This is a linear congruential pseudorandom number generator, as
|
* This is a linear congruential pseudorandom number generator, as
|
||||||
* defined by D. H. Lehmer and described by Donald E. Knuth in
|
* defined by D. H. Lehmer and described by Donald E. Knuth in
|
||||||
* <i>The Art of Computer Programming,</i> Volume 3:
|
* <i>The Art of Computer Programming,</i> Volume 2:
|
||||||
* <i>Seminumerical Algorithms</i>, section 3.2.1.
|
* <i>Seminumerical Algorithms</i>, section 3.2.1.
|
||||||
*
|
*
|
||||||
* @param bits random bits
|
* @param bits random bits
|
||||||
@ -570,7 +570,7 @@ class Random implements java.io.Serializable {
|
|||||||
* }}</pre>
|
* }}</pre>
|
||||||
* This uses the <i>polar method</i> of G. E. P. Box, M. E. Muller, and
|
* This uses the <i>polar method</i> of G. E. P. Box, M. E. Muller, and
|
||||||
* G. Marsaglia, as described by Donald E. Knuth in <i>The Art of
|
* G. Marsaglia, as described by Donald E. Knuth in <i>The Art of
|
||||||
* Computer Programming</i>, Volume 3: <i>Seminumerical Algorithms</i>,
|
* Computer Programming</i>, Volume 2: <i>Seminumerical Algorithms</i>,
|
||||||
* section 3.4.1, subsection C, algorithm P. Note that it generates two
|
* section 3.4.1, subsection C, algorithm P. Note that it generates two
|
||||||
* independent values at the cost of only one call to {@code StrictMath.log}
|
* independent values at the cost of only one call to {@code StrictMath.log}
|
||||||
* and one call to {@code StrictMath.sqrt}.
|
* and one call to {@code StrictMath.sqrt}.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user