Module ludomath::rng [] [src]

Functions for pseudo-random number generation.

All the magic happens in impl Rng, I'd suggest looking there for specific documentation.

DISCLAIMER: The functions contained within are not even close to cryptographically secure.

As a result, they are much faster than they otherwise would be but sacrifice perfect distribution and entropy. Should be good enough for most use cases only needing to look random, but not for anything requiring actual, proper randomness.

Structs

Rng

A pseudorandom number generator with a 128-bit seed.