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