Package squidpony.squidmath
Interface FlawedRandomness
- All Superinterfaces:
IFlawed
,RandomnessSource
,Serializable
- All Known Implementing Classes:
FlawedRandomness.AddRotate
,FlawedRandomness.BigCounter
public interface FlawedRandomness extends RandomnessSource, IFlawed
An interface to indicate a
Created by Tommy Ettinger on 11/10/2019.
RandomnessSource
that is intentionally flawed to create output patterns where a
truly random sequence would have none. All FlawedRandomness implementations are static inner classes inside this
interface, hopefully to avoid confusion with ones that are meant for general use. This implements IFlawed
as
well, to mark that it isn't for general-purpose use.
Created by Tommy Ettinger on 11/10/2019.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description 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. -
Method Summary