public static enum ProviderBuilder.RandomSourceInternal extends Enum<ProviderBuilder.RandomSourceInternal>
| Enum Constant and Description |
|---|
ISAAC
Source of randomness is
ISAACRandom. |
JDK
Source of randomness is
JDKRandom. |
JSF_32
Source of randomness is
JenkinsSmallFast32. |
JSF_64
Source of randomness is
JenkinsSmallFast64. |
KISS
Source of randomness is
KISSRandom. |
L128_X1024_MIX
Source of randomness is
L128X1024Mix. |
L128_X128_MIX
Source of randomness is
L128X128Mix. |
L128_X256_MIX
Source of randomness is
L128X256Mix. |
L32_X64_MIX
Source of randomness is
L32X64Mix. |
L64_X1024_MIX
Source of randomness is
L64X1024Mix. |
L64_X128_MIX
Source of randomness is
L64X128Mix. |
L64_X128_SS
Source of randomness is
L64X128StarStar. |
L64_X256_MIX
Source of randomness is
L64X256Mix. |
MSWS
Source of randomness is
MiddleSquareWeylSequence. |
MT
Source of randomness is
MersenneTwister. |
MT_64
Source of randomness is
MersenneTwister64. |
MWC_256
Source of randomness is
MultiplyWithCarry256. |
PCG_MCG_XSH_RR_32
Source of randomness is
PcgMcgXshRr32. |
PCG_MCG_XSH_RS_32
Source of randomness is
PcgMcgXshRs32. |
PCG_RXS_M_XS_64
Source of randomness is
PcgRxsMXs64. |
PCG_RXS_M_XS_64_OS
Source of randomness is
PcgRxsMXs64. |
PCG_XSH_RR_32
Source of randomness is
PcgXshRr32. |
PCG_XSH_RR_32_OS
Source of randomness is
PcgXshRr32. |
PCG_XSH_RS_32
Source of randomness is
PcgXshRs32. |
PCG_XSH_RS_32_OS
Source of randomness is
PcgXshRs32. |
SFC_32
Source of randomness is
DotyHumphreySmallFastCounting32. |
SFC_64
Source of randomness is
DotyHumphreySmallFastCounting64. |
SPLIT_MIX_64
Source of randomness is
SplitMix64. |
TWO_CMRES
Source of randomness is
TwoCmres. |
TWO_CMRES_SELECT
Source of randomness is
TwoCmres with explicit selection
of the two subcycle generators. |
WELL_1024_A
Source of randomness is
Well1024a. |
WELL_19937_A
Source of randomness is
Well19937a. |
WELL_19937_C
Source of randomness is
Well19937c. |
WELL_44497_A
Source of randomness is
Well44497a. |
WELL_44497_B
Source of randomness is
Well44497b. |
WELL_512_A
Source of randomness is
Well512a. |
XO_RO_SHI_RO_1024_PP
Source of randomness is
XoRoShiRo1024PlusPlus. |
XO_RO_SHI_RO_1024_S
Source of randomness is
XoRoShiRo1024Star. |
XO_RO_SHI_RO_1024_SS
Source of randomness is
XoRoShiRo1024StarStar. |
XO_RO_SHI_RO_128_PLUS
Source of randomness is
XoRoShiRo128Plus. |
XO_RO_SHI_RO_128_PP
Source of randomness is
XoRoShiRo128PlusPlus. |
XO_RO_SHI_RO_128_SS
Source of randomness is
XoRoShiRo128StarStar. |
XO_RO_SHI_RO_64_S
Source of randomness is
XoRoShiRo64Star. |
XO_RO_SHI_RO_64_SS
Source of randomness is
XoRoShiRo64StarStar. |
XO_SHI_RO_128_PLUS
Source of randomness is
XoShiRo128Plus. |
XO_SHI_RO_128_PP
Source of randomness is
XoShiRo128PlusPlus. |
XO_SHI_RO_128_SS
Source of randomness is
XoShiRo128StarStar. |
XO_SHI_RO_256_PLUS
Source of randomness is
XoShiRo256Plus. |
XO_SHI_RO_256_PP
Source of randomness is
XoShiRo256PlusPlus. |
XO_SHI_RO_256_SS
Source of randomness is
XoShiRo256StarStar. |
XO_SHI_RO_512_PLUS
Source of randomness is
XoShiRo512Plus. |
XO_SHI_RO_512_PP
Source of randomness is
XoShiRo512PlusPlus. |
XO_SHI_RO_512_SS
Source of randomness is
XoShiRo512StarStar. |
XOR_SHIFT_1024_S
Source of randomness is
XorShift1024Star. |
XOR_SHIFT_1024_S_PHI
Source of randomness is
XorShift1024StarPhi. |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
convertSeed(Object seed)
Converts a seed from any of the supported seed types to a native seed.
|
protected byte[] |
createByteArraySeed(UniformRandomProvider source)
Creates a
byte[] seed using the provided source of randomness. |
protected Object |
createSeed()
Creates a native seed.
|
byte[] |
createSeedBytes()
Creates a seed suitable for the implementing class represented by this random source.
|
byte[] |
createSeedBytes(UniformRandomProvider source)
Creates a seed suitable for the implementing class represented by this random source
using the supplied source of randomness.
|
Class<?> |
getRng()
Gets the implementing class of the random source.
|
<SEED> boolean |
isNativeSeed(SEED seed)
Checks whether the type of given
seed is the native type
of the implementation. |
static ProviderBuilder.RandomSourceInternal |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProviderBuilder.RandomSourceInternal[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProviderBuilder.RandomSourceInternal JDK
JDKRandom.public static final ProviderBuilder.RandomSourceInternal WELL_512_A
Well512a.public static final ProviderBuilder.RandomSourceInternal WELL_1024_A
Well1024a.public static final ProviderBuilder.RandomSourceInternal WELL_19937_A
Well19937a.public static final ProviderBuilder.RandomSourceInternal WELL_19937_C
Well19937c.public static final ProviderBuilder.RandomSourceInternal WELL_44497_A
Well44497a.public static final ProviderBuilder.RandomSourceInternal WELL_44497_B
Well44497b.public static final ProviderBuilder.RandomSourceInternal MT
MersenneTwister.public static final ProviderBuilder.RandomSourceInternal ISAAC
ISAACRandom.public static final ProviderBuilder.RandomSourceInternal SPLIT_MIX_64
SplitMix64.public static final ProviderBuilder.RandomSourceInternal XOR_SHIFT_1024_S
XorShift1024Star.public static final ProviderBuilder.RandomSourceInternal TWO_CMRES
TwoCmres.public static final ProviderBuilder.RandomSourceInternal TWO_CMRES_SELECT
TwoCmres with explicit selection
of the two subcycle generators.public static final ProviderBuilder.RandomSourceInternal MT_64
MersenneTwister64.public static final ProviderBuilder.RandomSourceInternal MWC_256
MultiplyWithCarry256.public static final ProviderBuilder.RandomSourceInternal KISS
KISSRandom.public static final ProviderBuilder.RandomSourceInternal XOR_SHIFT_1024_S_PHI
XorShift1024StarPhi.public static final ProviderBuilder.RandomSourceInternal XO_RO_SHI_RO_64_S
XoRoShiRo64Star.public static final ProviderBuilder.RandomSourceInternal XO_RO_SHI_RO_64_SS
XoRoShiRo64StarStar.public static final ProviderBuilder.RandomSourceInternal XO_SHI_RO_128_PLUS
XoShiRo128Plus.public static final ProviderBuilder.RandomSourceInternal XO_SHI_RO_128_SS
XoShiRo128StarStar.public static final ProviderBuilder.RandomSourceInternal XO_RO_SHI_RO_128_PLUS
XoRoShiRo128Plus.public static final ProviderBuilder.RandomSourceInternal XO_RO_SHI_RO_128_SS
XoRoShiRo128StarStar.public static final ProviderBuilder.RandomSourceInternal XO_SHI_RO_256_PLUS
XoShiRo256Plus.public static final ProviderBuilder.RandomSourceInternal XO_SHI_RO_256_SS
XoShiRo256StarStar.public static final ProviderBuilder.RandomSourceInternal XO_SHI_RO_512_PLUS
XoShiRo512Plus.public static final ProviderBuilder.RandomSourceInternal XO_SHI_RO_512_SS
XoShiRo512StarStar.public static final ProviderBuilder.RandomSourceInternal PCG_XSH_RR_32
PcgXshRr32.public static final ProviderBuilder.RandomSourceInternal PCG_XSH_RS_32
PcgXshRs32.public static final ProviderBuilder.RandomSourceInternal PCG_RXS_M_XS_64
PcgRxsMXs64.public static final ProviderBuilder.RandomSourceInternal PCG_MCG_XSH_RR_32
PcgMcgXshRr32.public static final ProviderBuilder.RandomSourceInternal PCG_MCG_XSH_RS_32
PcgMcgXshRs32.public static final ProviderBuilder.RandomSourceInternal MSWS
MiddleSquareWeylSequence.public static final ProviderBuilder.RandomSourceInternal SFC_32
DotyHumphreySmallFastCounting32.public static final ProviderBuilder.RandomSourceInternal SFC_64
DotyHumphreySmallFastCounting64.public static final ProviderBuilder.RandomSourceInternal JSF_32
JenkinsSmallFast32.public static final ProviderBuilder.RandomSourceInternal JSF_64
JenkinsSmallFast64.public static final ProviderBuilder.RandomSourceInternal XO_SHI_RO_128_PP
XoShiRo128PlusPlus.public static final ProviderBuilder.RandomSourceInternal XO_RO_SHI_RO_128_PP
XoRoShiRo128PlusPlus.public static final ProviderBuilder.RandomSourceInternal XO_SHI_RO_256_PP
XoShiRo256PlusPlus.public static final ProviderBuilder.RandomSourceInternal XO_SHI_RO_512_PP
XoShiRo512PlusPlus.public static final ProviderBuilder.RandomSourceInternal XO_RO_SHI_RO_1024_PP
XoRoShiRo1024PlusPlus.public static final ProviderBuilder.RandomSourceInternal XO_RO_SHI_RO_1024_S
XoRoShiRo1024Star.public static final ProviderBuilder.RandomSourceInternal XO_RO_SHI_RO_1024_SS
XoRoShiRo1024StarStar.public static final ProviderBuilder.RandomSourceInternal PCG_XSH_RR_32_OS
PcgXshRr32.public static final ProviderBuilder.RandomSourceInternal PCG_XSH_RS_32_OS
PcgXshRs32.public static final ProviderBuilder.RandomSourceInternal PCG_RXS_M_XS_64_OS
PcgRxsMXs64.public static final ProviderBuilder.RandomSourceInternal L64_X128_SS
L64X128StarStar.public static final ProviderBuilder.RandomSourceInternal L64_X128_MIX
L64X128Mix.public static final ProviderBuilder.RandomSourceInternal L64_X256_MIX
L64X256Mix.public static final ProviderBuilder.RandomSourceInternal L64_X1024_MIX
L64X1024Mix.public static final ProviderBuilder.RandomSourceInternal L128_X128_MIX
L128X128Mix.public static final ProviderBuilder.RandomSourceInternal L128_X256_MIX
L128X256Mix.public static final ProviderBuilder.RandomSourceInternal L128_X1024_MIX
L128X1024Mix.public static final ProviderBuilder.RandomSourceInternal L32_X64_MIX
L32X64Mix.public static ProviderBuilder.RandomSourceInternal[] values()
for (ProviderBuilder.RandomSourceInternal c : ProviderBuilder.RandomSourceInternal.values()) System.out.println(c);
public static ProviderBuilder.RandomSourceInternal valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Class<?> getRng()
public <SEED> boolean isNativeSeed(SEED seed)
seed is the native type
of the implementation.SEED - Seed type.seed - Seed value.true if the seed can be passed to the builder
for this RNG type.protected Object createSeed()
The default implementation creates a seed of the native type and, for array seeds, ensures not all bits are zero.
This method should be over-ridden to satisfy seed requirements for the generator.
protected byte[] createByteArraySeed(UniformRandomProvider source)
byte[] seed using the provided source of randomness.
The default implementation creates a full-length seed and ensures not all bits are zero.
This method should be over-ridden to satisfy seed requirements for the generator.
source - Source of randomness.protected Object convertSeed(Object seed)
The default implementation delegates to the native seed type conversion.
This method should be over-ridden to satisfy seed requirements for the generator.
seed - Input seed (must not be null).UnsupportedOperationException - if the seed type is invalid.public final byte[] createSeedBytes()
It will satisfy the seed size and any other seed requirements for the implementing class. The seed is converted from the native type to bytes.
public final byte[] createSeedBytes(UniformRandomProvider source)
It will satisfy the seed size and any other seed requirements for the implementing class. The seed is converted from the native type to bytes.
source - Source of randomness.Copyright © 2016–2022 The Apache Software Foundation. All rights reserved.