Interface CreateRandomArrayOptions

interface CreateRandomArrayOptions {
    distribution?: "uniform" | "normal";
    length?: number;
    mean?: number;
    range?: number;
    seed?: number;
    standardDeviation?: number;
}

Properties

distribution?: "uniform" | "normal"

Type of random distribution. 'uniform' (true random) or 'normal' (gaussian distribution)

'normal'
length?: number

number of points

1000
mean?: number

mean

0
range?: number

range, used in case of uniform distribution

1
seed?: number

Seed for a deterministic sequence of random numbers.

Date.now()
standardDeviation?: number

standardDeviation, used in case of normal distribution

1