Class ArrayShuffleBenchmark.RngSource
- java.lang.Object
-
- org.apache.commons.rng.examples.jmh.sampling.ArrayShuffleBenchmark.RngSource
-
- Enclosing class:
- ArrayShuffleBenchmark
public static class ArrayShuffleBenchmark.RngSource extends Object
Defines theRandomSourcefor testing.
-
-
Constructor Summary
Constructors Constructor Description RngSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.commons.rng.UniformRandomProvidergetRNG()Gets the source of randomness.voidsetup()Look-up theArrayShuffleBenchmark.RngSourcefrom the name and instantiates the generator.
-
-
-
Constructor Detail
-
RngSource
public RngSource()
-
-
Method Detail
-
getRNG
public org.apache.commons.rng.UniformRandomProvider getRNG()
Gets the source of randomness.- Returns:
- RNG
-
setup
public void setup()
Look-up theArrayShuffleBenchmark.RngSourcefrom the name and instantiates the generator.
-
-