/** * Sets the uniform random number generated shared by all <b>static</b> * methods. * * @param randomGenerator * the new uniform random number generator to be shared. */ private static void xstaticSetRandomGenerator(DoubleRandomEngine randomGenerator) { synchronized (shared) { shared.setRandomGenerator(randomGenerator); } } }
/** * Sets the uniform random number generated shared by all <b>static</b> * methods. * * @param randomGenerator * the new uniform random number generator to be shared. */ private static void xstaticSetRandomGenerator(DoubleRandomEngine randomGenerator) { synchronized (shared) { shared.setRandomGenerator(randomGenerator); } } }
/** * Constructs a normal (gauss) distribution. Example: mean=0.0, * standardDeviation=1.0. */ public Normal(double mean, double standardDeviation, DoubleRandomEngine randomGenerator) { setRandomGenerator(randomGenerator); setState(mean, standardDeviation); }
/** * Constructs a normal (gauss) distribution. Example: mean=0.0, * standardDeviation=1.0. */ public Normal(double mean, double standardDeviation, DoubleRandomEngine randomGenerator) { setRandomGenerator(randomGenerator); setState(mean, standardDeviation); }