Function ndarray_linalg::generate::random
source · [−]pub fn random<A, S, Sh, D>(sh: Sh) -> ArrayBase<S, D>where
A: Scalar,
S: DataOwned<Elem = A>,
D: Dimension,
Sh: ShapeBuilder<Dim = D>,
Expand description
Generate random array with given shape
- This function uses rand::thread_rng. See random_using for using another RNG