random#

static vectorious.random()#

Creates a vector containing random samples from a uniform distribution over [0, 1) of shape shape

Arguments:
  • ...shape (Array.<Number>)

Returns:

NDArray

Examples:

import { random } from 'vectorious/core/random';

random(3); // => array([0.27496153116226196, 0.7581521272659302, 0.3682245910167694])