std::random - Rust (original) (raw)

std

Module random

Source

🔬This is a nightly-only experimental API. (random #130703)

Expand description

Random value generation.

The Random trait allows generating a random value for a type using a given RandomSource.

Structs§

DefaultRandomSourceExperimental

The default random source.

Traits§

RandomExperimental

A trait for getting a random value for a type.

RandomSourceExperimental

A source of randomness.

Functions§

randomExperimental

Generates a random value with the default random source.