T
- the context typepublic abstract class ContextRNG<T> extends Object implements RandomNumberGenerator
Constructor and Description |
---|
ContextRNG() |
Modifier and Type | Method and Description |
---|---|
protected RandomNumberGenerator |
getRNG(T context) |
double |
nextDouble()
Get the next random
double . |
void |
removeContext() |
void |
seed(long... seeds)
Seed the random number/vector/scenario generator to produce repeatable experiments.
|
protected RandomNumberGenerator getRNG(T context)
public void removeContext()
public double nextDouble()
RandomNumberGenerator
double
.nextDouble
in interface RandomNumberGenerator
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.