Skip to main content

set_random

Method of BoolArray.

Overloads

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

set_random() -> BoolArray

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

set_random(Distribution distribution) -> BoolArray

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

Parameters

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