public class ProviderBuilder extends Object
It uses reflection to find the factory method of the RNG implementation, and performs seed type conversions.
| Modifier and Type | Class and Description |
|---|---|
static class |
ProviderBuilder.RandomSourceInternal
Identifiers of the generators.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.commons.rng.RestorableUniformRandomProvider |
create(ProviderBuilder.RandomSourceInternal source,
Object seed,
Object[] args)
Creates a RNG instance.
|
public static org.apache.commons.rng.RestorableUniformRandomProvider create(ProviderBuilder.RandomSourceInternal source, Object seed, 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.UnsupportedOperationException - if the seed type is invalid.Copyright © 2016 The Apache Software Foundation. All rights reserved.