random_range

Function random_range 

Source
pub fn random_range<T>(from: T, to: T, shape: Vec<i32>) -> Array<T>
where T: SampleUniform + Copy,
Expand description

Creates new array of given shape filled with random values between given range

ยงArguments

  • from - start of range
  • to - end of range
  • shape - shape of new array