public class ThinRNG extends Object implements RandomNumberGenerator
Constructor and Description |
---|
ThinRNG(RandomNumberGenerator rng,
int m)
Constructs a thinned RNG.
|
Modifier and Type | Method and Description |
---|---|
double |
nextDouble()
Get the next random
double . |
void |
seed(long... seeds)
Seed the random number/vector/scenario generator to produce repeatable experiments.
|
public ThinRNG(RandomNumberGenerator rng, int m)
rng
- an underlying RNGm
- the number of items to draw from the underlying RNG for each drawpublic double nextDouble()
RandomNumberGenerator
double
.nextDouble
in interface RandomNumberGenerator
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.