Trait argmin_math::ArgminRandom
source · pub trait ArgminRandom {
// Required method
fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Self;
}
Expand description
Create a random number
Required Methods§
sourcefn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Self
fn rand_from_range<R: Rng>(min: &Self, max: &Self, rng: &mut R) -> Self
Get a random element between min and max,
Object Safety§
This trait is not object safe.