public class MersenneTwister extends Object implements RandomGenerator
Constructor and Description |
---|
MersenneTwister() |
MersenneTwister(long seed) |
Modifier and Type | Method and Description |
---|---|
double |
exponential(double tau)
A number from the probability distribution
[ t ≥ 0] a exp(-at)
|
double |
gammln(double xx) |
double |
gaussian() |
static void |
main(String[] argv) |
int |
poisson(double mean) |
float |
random() |
int |
round(double mean)
Randomly round up or down, so the average is @mean.
|
void |
setSeed(long seed) |
long |
used() |
public MersenneTwister()
public MersenneTwister(long seed)
public long used()
used
in interface RandomGenerator
public void setSeed(long seed)
public final float random()
random
in interface RandomGenerator
public final double gaussian()
gaussian
in interface RandomGenerator
public final double gammln(double xx)
gammln
in interface RandomGenerator
public final int poisson(double mean)
poisson
in interface RandomGenerator
public final double exponential(double tau)
RandomGenerator
exponential
in interface RandomGenerator
public final int round(double mean)
RandomGenerator
round
in interface RandomGenerator
public static void main(String[] argv)
Copyright © 2020. All rights reserved.