Package org.apache.commons.rng.core.source64
Concrete algorithms for long
-based sources of randomness
For internal use only: Direct access to classes in this package is discouraged, as they could be modified without notice.
Notes for developers
-
A source of randomness must inherit from
LongProvider
- The "provider" must specify one way for setting the seed. For a given seed, the generated sequence must always be the same.
-
The "provider" must implement methods
getStateInternal
andsetStateInternal
in order to save and restore the state of an instance (cf.BaseProvider
). -
When a new class is implemented here, user-access to it must be
provided through associated
RandomSource
factory methods defined in module "commons-rng-simple".
-
Interface Summary Interface Description RandomLongSource Source of randomness that generates values of typelong
. -
Class Summary Class Description DotyHumphreySmallFastCounting64 Implement the Small, Fast, Counting (SFC) 64-bit generator of Chris Doty-Humphrey.JenkinsSmallFast64 Implement Bob Jenkins's small fast (JSF) 64-bit generator.LongProvider Base class for all implementations that provide along
-based source randomness.MersenneTwister64 This class provides the 64-bits version of the originally 32-bitsMersenne Twister
.PcgRxsMXs64 A Permuted Congruential Generator (PCG) that is composed of a 64-bit Linear Congruential Generator (LCG) combined with the RXS-M-XS (random xorshift; multiply; xorshift) output transformation to create 64-bit output.SplitMix64 A fast RNG, with 64 bits of state, that can be used to initialize the state of other generators.TwoCmres Random number generator designed by Mark D. Overton.XoRoShiRo1024PlusPlus A large-state all-purpose 64-bit generator.XoRoShiRo1024Star A large-state 64-bit generator suitable fordouble
generation.XoRoShiRo1024StarStar A large-state all-purpose 64-bit generator.XoRoShiRo128Plus A fast 64-bit generator suitable fordouble
generation.XoRoShiRo128PlusPlus A fast all-purpose 64-bit generator.XoRoShiRo128StarStar A fast all-purpose 64-bit generator.XorShift1024Star A fast RNG implementing theXorShift1024*
algorithm.XorShift1024StarPhi A fast RNG implementing theXorShift1024*
algorithm.XoShiRo256Plus A fast 64-bit generator suitable fordouble
generation.XoShiRo256PlusPlus A fast all-purpose 64-bit generator.XoShiRo256StarStar A fast all-purpose 64-bit generator.XoShiRo512Plus A fast 64-bit generator suitable fordouble
generation.XoShiRo512PlusPlus A fast all-purpose generator.XoShiRo512StarStar A fast all-purpose generator.