Skip to main content

set_random

Method of RealArray.

Overloads

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

set_random() -> RealArray

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

set_random(Distribution distribution) -> RealArray

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

Parameters

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