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)

Default

'normal'
length?: number

number of points

Default

1000
mean?: number

mean

Default

0
range?: number

range, used in case of uniform distribution

Default

1
seed?: number

Seed for a deterministic sequence of random numbers.

Default

Date.now()
standardDeviation?: number

standardDeviation, used in case of normal distribution

Default

1