Trait IntRandom
Source pub trait IntRandom {
// Required method
fn random() -> Self;
}
Expand description
Trait for integer random number generation.
Generates a Vector, RowVector, or Matrix
filled with random integers uniformly across all values of the integer type.
§Example
use ferrix::IntRandom;
use ferrix::Vector;
let a = Vector::<i32, 3>::random();
Will generate random integers uniformly across all values of the type.
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.