a float in [0, 1), with 32 bits of resolution
captures the generator state, so a save file can resume the same stream
An integer in [0, bound), without modulo bias.
The naive nextUint32() % bound favours the low values whenever bound does not
divide 2^32; this rejects the unfair tail of the range instead.
the raw generator: a uniformly distributed unsigned 32-bit integer
The seeded generator class
Random's free functions wrap directly, for a game that wants its own independent stream rather than sharing the ambient one.Example