public final class ProviderBuilder extends java.lang.Object
It uses reflection to find the factory method of the RNG implementation, and performs seed type conversions.
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ProviderBuilder.RandomSourceInternal |
Identifiers of the generators.
|
| Modifier and Type | Method | Description |
|---|---|---|
static org.apache.commons.rng.RestorableUniformRandomProvider |
create(ProviderBuilder.RandomSourceInternal source,
java.lang.Object seed,
java.lang.Object[] args) |
Creates a RNG instance.
|
public static org.apache.commons.rng.RestorableUniformRandomProvider create(ProviderBuilder.RandomSourceInternal source, java.lang.Object seed, java.lang.Object[] args)
source - RNG specification.seed - Seed value. It can be null (in which case a
random value will be used).args - Additional arguments to the implementation's constructor.java.lang.UnsupportedOperationException - if the seed type is invalid.Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.