Uses of Interface
squidpony.squidmath.StatefulRandomness
Package | Description |
---|---|
squidpony.squidmath |
A very broad package containing random number generators, geometry tools, data structures, and noise functions.
|
-
Uses of StatefulRandomness in squidpony.squidmath
Subinterfaces of StatefulRandomness in squidpony.squidmath Modifier and Type Interface Description interface
IStatefulRNG
Simply groups the two interfacesIRNG
andStatefulRandomness
so some implementations of IRNG can have their states read from and written to.Classes in squidpony.squidmath that implement StatefulRandomness Modifier and Type Class Description class
DeckRNG
An RNG variant that has 16 possible grades of value it can produce and shuffles them like a deck of cards.class
DistributedRNG
An implementation ofIRNG
that allows specifying a distribution for all random numbers it produces via aIDistribution.SimpleDistribution
value.class
DiverRNG
A very-high-quality StatefulRandomness that is the fastest 64-bit generator in this library that passes statistical tests and is one-dimensionally equidistributed across all 64-bit outputs.class
EditRNG
A subclass of StatefulRNG (and thus RNG) that allows customizing many parts of the random number generation.static class
FlawedRandomness.AddRotate
A flawed randomness source that adds a rotation of its state, to its state, every generation.static class
FlawedRandomness.BigCounter
A flawed randomness source that depends almost entirely on its starting state for any random-seeming results in its output.class
GWTRNG
An IRNG implementation that is meant to provide random numbers very quickly when targeting GWT but also to produce the same numbers when used on desktop, Android, or other platforms, and that can have its state read as a StatefulRandomness.class
Lathe32RNG
A modification of Blackman and Vigna's xoroshiro128+ generator using two 32-bit ints of state instead of two 64-bit longs, as well as modifying the output with two additional operations on the existing state; this is both the fastest generator on GWT I have found without statistical failures, and a StatefulRandomness.class
LFSR
A Linear Feedback Shift Register that may be used like a StatefulRandomness but is not truly random.class
LightRNG
This is a SplittableRandom-style generator, meant to have a tiny state that permits storing many different generators with low overhead.class
LinnormRNG
A mid-high-quality StatefulRandomness that is the second-fastest 64-bit generator in this library that is 1-dimensionally equidistributed across its 64-bit outputs.class
MizuchiRNG
A high-quality StatefulRandomness based onLinnormRNG
but modified to allow any odd number as a stream, instead of LinnormRNG's hardcoded stream of 1.class
MoonwalkRNG
An IRNG implementation that allows the extra functionality of a StatefulRandomness and a SkippingRandomness, as well as allowing reverse-lookup of the state that produced a long using the staticMoonwalkRNG.inverseNextLong(long)
method, and distance checks between two generated numbers with the staticMoonwalkRNG.distance(long, long)
method.class
NLFSR
A Non-Linear Feedback Shift Register that may be used like a StatefulRandomness but is not truly random.class
PermutedRNG
This is a RandomnessSource in the PCG-Random family.class
PintRNG
A RandomnessSource based on PCG-Random that has a single int of state.class
PulleyRNG
A very-high-quality StatefulRandomness that is meant to be reasonably fast, but also to be robust against frequent state changes, and is built around a strong determine() method.class
SilkRNG
An IStatefulRNG implementation that is meant to provide random numbers very quickly when targeting GWT but also to produce the same numbers when used on desktop, Android, or other platforms, and that can have its state read as a StatefulRandomness; it is thus likeGWTRNG
but should perform better on recent desktop JVMs.class
Starfish32RNG
A modification of Blackman and Vigna's xoroshiro64** generator; uses two 32-bit ints of state likeLathe32RNG
but has better equidistribution.class
StatefulRNG
A slight variant on RNG that always uses a stateful RandomessSource and so can have its state set or retrieved using setState() or getState().class
ThrustAltRNG
A random number generator that is extremely fast but can't return all possible results.class
VanDerCorputQRNG
A quasi-random number generator that goes through one of many sub-random sequences found by J.G.