Skip to main content

set_random

Method of RealMatrix.

Overloads

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

set_random() -> RealMatrix

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

set_random(RandomGenerator generator) -> RealMatrix

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

Parameters

  • generator: A random number generator used to populate the matrix.

set_random(Distribution distribution) -> RealMatrix

Sets all elements of the RealMatrix lhs to be populated by the given distribution.

Parameters

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

set_random(Distribution distribution, RandomGenerator generator) -> RealMatrix

Sets all elements of the RealMatrix lhs to be populated by the given distribution.

Parameters

  • distribution: A random distribution used to populate the given matrix
  • generator: A random number generator used to populate the matrix.