Package org.apache.commons.math3.random
Class RandomGeneratorFactory
java.lang.Object
org.apache.commons.math3.random.RandomGeneratorFactory
Utilities for creating
RandomGenerator instances.- Since:
- 3.3
-
Method Summary
Modifier and TypeMethodDescriptionstatic longconvertToLong(int[] seed) Converts seed from one representation to another.static RandomGeneratorCreates aRandomDataGeneratorinstance that wraps aRandominstance.
-
Method Details
-
createRandomGenerator
Creates aRandomDataGeneratorinstance that wraps aRandominstance.- Parameters:
rng- JDKRandominstance that will generate the the random data.- Returns:
- the given RNG, wrapped in a
RandomGenerator.
-
convertToLong
public static long convertToLong(int[] seed) Converts seed from one representation to another.- Parameters:
seed- Original seed.- Returns:
- the converted seed.
-