Generate a uniform distribution.
For a normal (Gaussian) distribution, see randn.
// 128x8 uniformly random tensor const t = sm.rand([128, 8])
A new Tensor of uniformly random values
The shape of the output Tensor
Generated using TypeDoc
Generate a uniform distribution.
Remarks
For a normal (Gaussian) distribution, see randn.
Example
Returns
A new Tensor of uniformly random values