This library mainly provides the
RandomGen trait for (pseudo-)random
number generators, the
Random trait for values that can be randomly
generated, and the
BuildRandom generating representing relationships
between distributions and their generated types.
Of course, instances of these traits for common types from the standard
library are provided.
Additionally, it also provides the
Pcg PRNG, which supports multiple
streams of randomness, has a long period, and is Quite Fast™ while having
fairly good statistical properties. While it is not cryptographically
secure, it is quite suited for purposes of e.g. generating levels or other
Wrapper struct for the constant distribution.
An iterator over randomly built values.
An iterator over values randomly chosen from a slice.
An iterator over randomly generated values.
A Permuted Congruential Generator.
A type defining some distribution for generating (pseudo-)random values.
A type that can be (pseudo-)randomly generated using a
A (pseudo-)random number generator.