Uses of Class
io.github.pr0methean.betterrandom.util.EntryPoint
-
Packages that use EntryPoint Package Description io.github.pr0methean.betterrandom This root package contains interfaces forRandom
subclasses with specific extra features.io.github.pr0methean.betterrandom.prng Subclasses ofRandom
using different random-number generation algorithms.io.github.pr0methean.betterrandom.prng.adapter Implementations ofBaseRandom
that are backed by instances ofSplittableRandom
orRandom
, many of them wrapped inThreadLocal
<?>
to allow concurrent use of a shared instance by multiple threads.io.github.pr0methean.betterrandom.seed Tools to obtain and apply truly-random seeds forRandom
implementations, especially those that also implementByteArrayReseedableRandom
.io.github.pr0methean.betterrandom.util Miscellaneous utilities. -
-
Uses of EntryPoint in io.github.pr0methean.betterrandom
Methods in io.github.pr0methean.betterrandom with annotations of type EntryPoint Modifier and Type Method Description byte[]
RepeatableRandom. getSeed()
Returns the seed. -
Uses of EntryPoint in io.github.pr0methean.betterrandom.prng
Methods in io.github.pr0methean.betterrandom.prng with annotations of type EntryPoint Modifier and Type Method Description double
BaseRandom. nextDouble(double bound)
Returns a pseudorandomdouble
value between 0.0 (inclusive) and the specified bound (exclusive).Constructors in io.github.pr0methean.betterrandom.prng with annotations of type EntryPoint Constructor Description Cmwc4096Random(SeedGenerator seedGenerator)
Seed the RNG using the provided seed generation strategy.Pcg128Random(byte[] seed)
Creates a new PRNG with the provided seed.Pcg128Random(SeedGenerator seedGenerator)
Creates a new PRNG with a seed from the providedSeedGenerator
.Pcg64Random(byte[] seed)
Creates a new PRNG with the provided seed.Pcg64Random(long seed)
Creates a new PRNG with the provided seed.Pcg64Random(SeedGenerator seedGenerator)
Creates a new PRNG with a seed from the providedSeedGenerator
. -
Uses of EntryPoint in io.github.pr0methean.betterrandom.prng.adapter
Methods in io.github.pr0methean.betterrandom.prng.adapter with annotations of type EntryPoint Modifier and Type Method Description Random
RandomWrapper. getWrapped()
Returns the PRNG this RandomWrapper is currently wrapping.void
RandomWrapper. setWrapped(Random wrapped)
Replaces the wrapped PRNG with the given one on subsequent calls.Constructors in io.github.pr0methean.betterrandom.prng.adapter with annotations of type EntryPoint Constructor Description DirectSplittableRandomAdapter(long seed)
Wraps aSplittableRandom
with the specified seed.RandomWrapper()
Wraps aRandom
that is seeded using the default seeding strategy.RandomWrapper(long seed)
Wraps aRandom
that is seeded with the specified seed.RandomWrapper(SeedGenerator seedGenerator)
Wraps aRandom
that is seeded using the provided seed generation strategy.RandomWrapper(Random wrapped)
Creates an instance wrapping the givenRandom
. -
Uses of EntryPoint in io.github.pr0methean.betterrandom.seed
Constructors in io.github.pr0methean.betterrandom.seed with annotations of type EntryPoint Constructor Description SeedGeneratorPreferenceList(boolean isAlwaysWorthTrying, SeedGenerator... contents)
Creates an instance.SeedGeneratorPreferenceList(Collection<? extends SeedGenerator> contents, boolean isAlwaysWorthTrying)
Creates an instance. -
Uses of EntryPoint in io.github.pr0methean.betterrandom.util
Methods in io.github.pr0methean.betterrandom.util with annotations of type EntryPoint Modifier and Type Method Description String
Dumpable. dump()
Returns aString
representing the state of this object for debugging purposes, including mutable state thatObject.toString()
usually doesn't return.
-