Package | Description |
---|---|
squidpony.squidmath |
A very broad package containing random number generators, geometry tools, and some classes for combinatorics.
|
Modifier and Type | Interface and Description |
---|---|
interface |
StatefulRandomness
A simple interface for RandomnessSources that have the additional property of a state that can be re-set.
|
Modifier and Type | Class and Description |
---|---|
class |
ChaosRNG
An RNG that cannot be seeded and should be fairly hard to predict what it will return next.
|
class |
LightRNG
This is a SplittableRandom-style generator, meant to have a tiny state
that permits storing many different generators with low overhead.
|
class |
LongPeriodRNG
An RNG that has a drastically longer period than the other generators in SquidLib, other than MersenneTwister,
without sacrificing speed or HTML target compatibility.
|
class |
MersenneTwister
Customized extension of Random to allow for common roguelike operations.
|
class |
PermutedRNG
This is a RandomnessSource in the PCG-Random family.
|
class |
SobolQRNG
Implementation of a Sobol sequence as a Quasi-Random Number Generator.
|
class |
XoRoRNG
A port of Blackman and Vigna's xoroshiro 128+ generator; should be very fast and produce high-quality output.
|
class |
XorRNG
A port of Sebastiano Vigna's XorShift 128+ generator.
|
Modifier and Type | Field and Description |
---|---|
protected RandomnessSource |
RNG.random |
Modifier and Type | Method and Description |
---|---|
RandomnessSource |
XorRNG.copy()
Produces a copy of this RandomnessSource that, if next() and/or nextLong() are called on this object and the
copy, both will generate the same sequence of random numbers from the point copy() was called.
|
RandomnessSource |
XoRoRNG.copy()
Produces a copy of this RandomnessSource that, if next() and/or nextLong() are called on this object and the
copy, both will generate the same sequence of random numbers from the point copy() was called.
|
RandomnessSource |
SobolQRNG.copy()
Produces a copy of this RandomnessSource that, if next() and/or nextLong() are called on this object and the
copy, both will generate the same sequence of random numbers from the point copy() was called.
|
RandomnessSource |
RandomnessSource.copy()
Produces a copy of this RandomnessSource that, if next() and/or nextLong() are called on this object and the
copy, both will generate the same sequence of random numbers from the point copy() was called.
|
RandomnessSource |
PermutedRNG.copy()
Produces a copy of this RandomnessSource that, if next() and/or nextLong() are called on this object and the
copy, both will generate the same sequence of random numbers from the point copy() was called.
|
RandomnessSource |
MersenneTwister.copy()
Produces a copy of this RandomnessSource that, if next() and/or nextLong() are called on this object and the
copy, both will generate the same sequence of random numbers from the point copy() was called.
|
RandomnessSource |
LongPeriodRNG.copy()
Produces a copy of this RandomnessSource that, if next() and/or nextLong() are called on this object and the
copy, both will generate the same sequence of random numbers from the point copy() was called.
|
RandomnessSource |
LightRNG.copy()
Produces a copy of this RandomnessSource that, if next() and/or nextLong() are called on this object and the
copy, both will generate the same sequence of random numbers from the point copy() was called.
|
RandomnessSource |
ChaosRNG.copy()
Produces another ChaosRNG with no relation to this one; this breaks the normal rules that RandomnessSource.copy
abides by because this class should never have its generated number sequence be predictable.
|
RandomnessSource |
RNG.getRandomness() |
RandomnessSource |
EditRNG.getRandomness() |
RandomnessSource |
DharmaRNG.getRandomness() |
RandomnessSource |
DeckRNG.getRandomness() |
Modifier and Type | Method and Description |
---|---|
void |
StatefulRNG.setRandomness(RandomnessSource random) |
void |
RNG.setRandomness(RandomnessSource random) |
void |
EditRNG.setRandomness(RandomnessSource random) |
void |
DharmaRNG.setRandomness(RandomnessSource random) |
void |
DeckRNG.setRandomness(RandomnessSource random)
Reseeds this DeckRNG using the RandomnessSource it is given.
|
Constructor and Description |
---|
CustomRandom(RandomnessSource randomnessSource)
Creates a new random number generator.
|
DeckRNG(RandomnessSource random)
Seeds this DeckRNG using the RandomnessSource it is given.
|
DharmaRNG(RandomnessSource rs)
Construct a new DharmaRNG with the given seed.
|
DharmaRNG(RandomnessSource rs,
double fairness)
Construct a new DharmaRNG with the given seed.
|
EditRNG(RandomnessSource rs)
Construct a new EditRNG with the given seed.
|
EditRNG(RandomnessSource rs,
double expected)
Construct a new EditRNG with the given seed.
|
EditRNG(RandomnessSource rs,
double expected,
double centrality)
Construct a new EditRNG with the given seed.
|
RNG(RandomnessSource random)
Uses the provided source of randomness for all calculations.
|
StatefulRNG(RandomnessSource random) |
Copyright © 2012–2016. All rights reserved.