diff --git a/src/site/xdoc/userguide/random.xml b/src/site/xdoc/userguide/random.xml index 318567302..d41c138e3 100644 --- a/src/site/xdoc/userguide/random.xml +++ b/src/site/xdoc/userguide/random.xml @@ -124,7 +124,7 @@ initializes the appropriate generator. If you do not explicitly seed the generator, it is by default seeded with the current time in milliseconds. Therefore, to generate sequences of random data values, you should always - instantiate one RandomDataImpl and use it + instantiate one RandomDataImpl and use it repeatedly instead of creating new instances for subsequent values in the sequence. For example, the following will generate a random sequence of 50 long integers between 1 and 1,000,000, using the current time in @@ -168,11 +168,11 @@ for (int i = 0; i < 1000; i++) {

- Some algorithm requires random vectors instead of random scalars. When the + Some algorithms require random vectors instead of random scalars. When the components of these vectors are uncorrelated, they may be generated simply one at a time and packed together in the vector. The - UncorrelatedRandomVectorGenerator class does however simplify this + UncorrelatedRandomVectorGenerator class simplifies this process by setting the mean and deviation of each component once and generating complete vectors. When the components are correlated however, generating them is much more difficult. The