Thanks to visit codestin.com
Credit goes to docs.rs

randu

Macro randu 

Source
macro_rules! randu {
    ($($dim:expr),+) => { ... };
    ($type:ty; $($dim:expr),+) => { ... };
}
Expand description

Create an array of given shape sampled from uniform distribution

If no type argument is specified, the data type defaults to 32 bit floats.

ยงExamples

let mat10x10 = randu!(10, 10);