Skip to main content

Random

Trait Random 

Source
pub trait Random {
    // Required method
    fn random(rng: impl Rng) -> Self;
}
Expand description

A value that can be randomly generated

Required Methods§

Source

fn random(rng: impl Rng) -> Self

Generate random value

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> Random for T
where StandardUniform: Distribution<T>,