pub trait Random {
// Required method
fn random(rng: impl Rng) -> Self;
}Expand description
A value that can be randomly generated
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".