set_random
Method of RealMatrix.
Overloads
| Name | Description |
|---|---|
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]. |
set_random(Distribution distribution) -> RealMatrix | Sets all elements of the RealMatrix lhs to be populated by the given distribution. |
set_random(Distribution distribution, RandomGenerator generator) -> RealMatrix | Sets 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.