Querylight TS Demo

generateRandomVector

Creates a random vector of the requested dimensionality.

Back to docs search

Reference Entry

generateRandomVector

API Reference · foundation · order 143

Creates a random vector of the requested dimensionality.

generateRandomVector

Creates a random vector of the requested dimensionality.

Declaration

function generateRandomVector(dimensions: number, random: RandomSource): Vector

Signatures

```ts function generateRandomVector(dimensions: number, random: RandomSource): Vector ``` Creates a random vector of the requested dimensionality.

Parameters

- `dimensions: number` - `random: RandomSource`