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 interfaceIStatefulRNGSimply groups the two interfacesIRNGandStatefulRandomnessso 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 classDeckRNGAn RNG variant that has 16 possible grades of value it can produce and shuffles them like a deck of cards.classDistributedRNGAn implementation ofIRNGthat allows specifying a distribution for all random numbers it produces via aIDistribution.SimpleDistributionvalue.classDiverRNGA 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.classEditRNGA subclass of StatefulRNG (and thus RNG) that allows customizing many parts of the random number generation.static classFlawedRandomness.AddRotateA flawed randomness source that adds a rotation of its state, to its state, every generation.static classFlawedRandomness.BigCounterA flawed randomness source that depends almost entirely on its starting state for any random-seeming results in its output.classGWTRNGAn 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.classLathe32RNGA 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.classLFSRA Linear Feedback Shift Register that may be used like a StatefulRandomness but is not truly random.classLightRNGThis is a SplittableRandom-style generator, meant to have a tiny state that permits storing many different generators with low overhead.classLinnormRNGA 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.classMizuchiRNGA high-quality StatefulRandomness based onLinnormRNGbut modified to allow any odd number as a stream, instead of LinnormRNG's hardcoded stream of 1.classMoonwalkRNGAn 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.classNLFSRA Non-Linear Feedback Shift Register that may be used like a StatefulRandomness but is not truly random.classPermutedRNGThis is a RandomnessSource in the PCG-Random family.classPintRNGA RandomnessSource based on PCG-Random that has a single int of state.classPulleyRNGA 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.classSilkRNGAn 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 likeGWTRNGbut should perform better on recent desktop JVMs.classStarfish32RNGA modification of Blackman and Vigna's xoroshiro64** generator; uses two 32-bit ints of state likeLathe32RNGbut has better equidistribution.classStatefulRNGA slight variant on RNG that always uses a stateful RandomessSource and so can have its state set or retrieved using setState() or getState().classThrustAltRNGA random number generator that is extremely fast but can't return all possible results.classVanDerCorputQRNGA quasi-random number generator that goes through one of many sub-random sequences found by J.G.