argmin::core

Trait ArgminRandom

Source
pub trait ArgminRandom {
    // Required method
    fn rand_from_range(min: &Self, max: &Self) -> Self;
}
Expand description

Create a random number

Required Methods§

Source

fn rand_from_range(min: &Self, max: &Self) -> Self

Get a random element between min and max,

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.

Implementations on Foreign Types§

Source§

impl<T> ArgminRandom for Vec<T>

Source§

fn rand_from_range(min: &Self, max: &Self) -> Vec<T>

Implementors§