Skip to main content

set_random

Method of IntegerArray.

Overloads

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

set_random() -> IntegerArray

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

set_random(Distribution distribution) -> IntegerArray

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

Parameters

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