Equana

Docs/Arrays/randn
Back to Arrays

randn

Standard normally distributed random numbers.

Syntax

randn(n, cols) → Float64 scalar (no args), vector randn(n), or matrix randn(rows, cols)

Backends

TypeScript

Description

Standard normally distributed random numbers.

Parameters

NameDescription
nVector length (or rows with cols)
colsNumber of columns

Returns

Float64 scalar (no args), vector randn(n), or matrix randn(rows, cols)

Examples

Try It
>> randn(2, 3)
Try It
>> randn()

See Also