[][src]Function numas::factory::random::random_from_distribution

pub fn random_from_distribution<T, D>(distr: D, shape: Vec<i32>) -> Array<T> where
    T: Copy,
    D: Distribution<T>, 

Creates new array of given shape filled with random values from given distribution

Arguments

  • distr - distribution of random values
  • shape - shape of new array