rand

inline fun <T : Number> Multik.rand(dim0: Int): D1Array<T>

Returns a vector of the specified size filled with random numbers uniformly distributed for: Int - [Int.MIN_VALUE, Int.MAX_VALUE) Long - [Long.MIN_VALUE, Long.MAX_VALUE) Float - [0f, 1f) Double - [0.0, 1.0)


inline fun <T : Number> Multik.rand(dim0: Int, dim1: Int): D2Array<T>

Returns a matrix of the specified shape filled with random numbers uniformly distributed for: Int - [Int.MIN_VALUE, Int.MAX_VALUE) Long - [Long.MIN_VALUE, Long.MAX_VALUE) Float - [0f, 1f) Double - [0.0, 1.0)


inline fun <T : Number> Multik.rand(    dim0: Int,     dim1: Int,     dim2: Int): D3Array<T>
inline fun <T : Number> Multik.rand(    dim0: Int,     dim1: Int,     dim2: Int,     dim3: Int): D4Array<T>
inline fun <T : Number> Multik.rand(    dim0: Int,     dim1: Int,     dim2: Int,     dim3: Int,     vararg dims: Int): NDArray<T, DN>
inline fun <T : Number, D : Dimension> Multik.rand(shape: IntArray): NDArray<T, D>

Returns an NDArray of the specified shape filled with random numbers uniformly distributed for: Int - [Int.MIN_VALUE, Int.MAX_VALUE) Long - [Long.MIN_VALUE, Long.MAX_VALUE) Float - [0f, 1f) Double - [0.0, 1.0)