Skip to content

Latest commit

 

History

History
86 lines (40 loc) · 1.09 KB

File metadata and controls

86 lines (40 loc) · 1.09 KB

Home > @josh-brown/vector > MatrixBuilder > random

MatrixBuilder.random() method

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;

Parameters

Parameter

Type

Description

shape

MatrixShape

The shape of the matrix as a tuple [m, n]

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