Function revonet::math::rand_vector [] [src]

pub fn rand_vector<T: Rng + Sized>(size: usize, rng: &mut T) -> Vec<f32>

Generates random vector where each element is drawn from the uniform distribution U(0,1).

Arguments:

  • size - resulting vector size.
  • rng - mutable reference to the external RNG.