DicEx.RNG.Default (dicEx v0.3.0)

Copy Markdown View Source

The default RNG: a thin wrapper around Erlang's :rand.

Every roll draws from the calling process's :rand state. For reproducible sequences use DicEx.roll/2's :seed option (backed by DicEx.RNG.Seeded, which keeps its own state). Use DicEx.RNG.Entropy when you want cryptographic, non-replayable randomness.