Skip to main content

set_random

Method of RealMatrix.

Overloads

NameDescription
set_random(Distribution distribution) -> RealMatrixSets all elements of the RealMatrix lhs to random values on the interval [0, 1].
set_random() -> RealMatrixSets all elements of the RealMatrix lhs to random values on the interval [0, 1].

set_random(Distribution distribution) -> RealMatrix

Sets all elements of the RealMatrix lhs to random values on the interval [0, 1].

Parameters

  • distribution: A random distribution used to populate the given matrix

set_random() -> RealMatrix

Sets all elements of the RealMatrix lhs to random values on the interval [0, 1].