init(randomScalarsIn:shape:)
Initialize the shaped array with random scalar values.
Declaration
init(randomScalarsIn range: Range<Self.Scalar>, shape: [Int])Parameters
- range:
The value range of each scalar
- shape:
The shape of the shaped array
Initialize the shaped array with random scalar values.
init(randomScalarsIn range: Range<Self.Scalar>, shape: [Int])The value range of each scalar
The shape of the shaped array