Class RandomUtil

java.lang.Object
edu.cmu.tetrad.util.RandomUtil

public class RandomUtil extends Object
Provides a common random number generator to be used throughout Tetrad, to avoid problems that happen when random number generators are created more often than once per millisecond. When this happens, the generators are synced, and there is less randomness than expected.

A seed can be set for the generator using the setSeed method. This is useful if an experiment needs to be repeated under different conditions. The seed for an experiment can be printed using the getSeed method.

The 64-bit Mersenne Twister implementation from the COLT library is used to generate random numbers.

To see what distributions are currently supported, look at the methods of the class. These many change over time.

Version:
$Id: $Id
Author:
josephramsey