pub trait RandomSource<T> { // Required method fn next(&mut self) -> T; }
Trait for sources of random data for tensors, for use with Tensor::rand.
Tensor::rand
Generate the next random value.