Home > @josh-brown/vector > MatrixBuilder > random
Constructs a matrix of the specified size whose entries are (uniformly-distributed) random numbers between min and max
Signature:
random(shape: MatrixShape, min?: number, max?: number): M;|
Parameter |
Type |
Description |
|---|---|---|
|
shape |
The shape of the matrix as a tuple | |
|
min |
number |
(Optional) The lower limit of the random numbers to include |
|
max |
number |
(Optional) The upper limit of the random numbers to include |
Returns:
M