[][src]Crate oorandom

A tiny PRNG.

More specifically, it implements a single GOOD PRNG, which is currently a permuted congruential generator. It has two implementations, one that returns u32 and one that returns u64. Someday I'll add functions that return floats, signed integers, and integer ranges. And that's probably about it. What more do you need?

For more info on PCG generators, see http://www.pcg-random.org/

This was designed as a minimalist utility for video games. No promises are made about its quality, and if you use it for cryptography you will get what you deserve.

Works with #![no_std], has no global state, and is generally neato.

Structs

Rand32

A PRNG producing a 32-bit output.

Rand64

A PRNG producing a 64-bit output.