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 RandomGeneratorpublic void setSeed(long seed)
public final float random()
random in interface RandomGeneratorpublic final double gaussian()
gaussian in interface RandomGeneratorpublic final double gammln(double xx)
gammln in interface RandomGeneratorpublic final int poisson(double mean)
poisson in interface RandomGeneratorpublic final double exponential(double tau)
RandomGeneratorexponential in interface RandomGeneratorpublic final int round(double mean)
RandomGeneratorround in interface RandomGeneratorpublic static void main(String[] argv)
Copyright © 2016. All rights reserved.