Skip to main content

NDArray::uniform

public static function uniform(array $size, float $low = 0.0, float $high = 1.0): NDArray;

Generates an array of random numbers from a uniform distribution. The uniform distribution provides an equal probability for each value within a specified range.