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§

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.