Module rand

Overview

Construct the rand module.

Structs

SmallRng

A small-state, fast, non-crypto, non-portable PRNG

StdRng

A strong, fast (amortized), non-portable RNG

SysError

An os error returned by methods in the rand module.

SysRng

An interface over the operating-system's random data source

ThreadRng

A reference to the thread-local generator

Functions

rng

Access a fast, pre-initialized generator