random

fun random(vararg shape: Int, random: Random = Random): F64Array

Creates an array of the given shape with random values. The values are uniformly distributed between 0 (inclusive) and 1 (exclusive).

Return

the created array

Since

1.0.7

Parameters

shape

the shape of the array

random

the random source


fun random(rows: Int, cols: Int, random: Random = Random): F64TwoAxisArray

Creates an array of the given shape with random values. The values are uniformly distributed between 0 (inclusive) and 1 (exclusive).

Return

the created array

Since

1.2.0

Parameters

rows

the number of rows

cols

the number of columns

random

the random source