Skip to content

Latest commit

 

History

History
86 lines (40 loc) · 1.02 KB

File metadata and controls

86 lines (40 loc) · 1.02 KB

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

VectorBuilder.random() method

Constructs a vector whose entries are (uniformly-distributed) random numbers between min and max

Signature:

random(dimension: number, min?: number, max?: number): V;

Parameters

Parameter

Type

Description

dimension

number

The dimension of the new vector

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:

V