pub trait RandomRange {
// Required method
fn random_range(low: Self, high: Self) -> Self;
}Expand description
Trait for random number generation with a range
Required Methods§
Sourcefn random_range(low: Self, high: Self) -> Self
fn random_range(low: Self, high: Self) -> Self
Generate a random number in the range (low, high)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.