Trait FloatRandom
Source pub trait FloatRandom {
// Required method
fn random() -> Self;
}
Expand description
Trait for floating-point random number generation.
Generates a Vector, RowVector, or Matrix
filled with random floating-point numbers uniformly in the range [-1, 1].
§Example
use ferrix::FloatRandom;
use ferrix::Vector;
let a = Vector::<f32, 3>::random();
Will generate random floating-point numbers uniformly in the range [-1, 1].
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.