Uses of Interface
squidpony.squidmath.IFlawed
| Package | Description |
|---|---|
| squidpony.squidmath |
A very broad package containing random number generators, geometry tools, data structures, and noise functions.
|
-
Uses of IFlawed in squidpony.squidmath
Subinterfaces of IFlawed in squidpony.squidmath Modifier and Type Interface Description interfaceFlawedPointHashAn interface for point hashes that are statistically biased, as well as a holder for inner classes that implement this.interfaceFlawedRandomnessAn interface to indicate aRandomnessSourcethat is intentionally flawed to create output patterns where a truly random sequence would have none.Classes in squidpony.squidmath that implement IFlawed Modifier and Type Class Description static classFlawedPointHash.CubeHashVery similar toFlawedPointHash.QuiltHash, but this doesn't change the pattern in different large squares, and instead repeats a square or cube of symmetric and patterned results over and over (so it can be tiled).static classFlawedPointHash.FNVHashFNV32a is OK as a hash for bytes when used in some hash tables, but it has major issues on its low-order bits when used as a point hash (the high bits aren't much better).static classFlawedPointHash.QuiltHashExtremely flawed if you're using this as a point hash, but meant to be aesthetically interesting, this produces different symmetrical patterns in squares, as if on a quilt.static classFlawedPointHash.RugHashProduces hashes that show strong bias on one axis (usually the later axes matter more) and have nice-looking patterns of dots.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.