Skip to main content

random_like

Method of IntegerArray.

Overloads

NameDescription
random_like(Distribution distribution) -> IntegerArrayReturn a IntegerArray of random numbers with the same shape and type as a given IntegerArray.
random_like() -> IntegerArrayReturn a IntegerArray of random numbers with the same shape and type as a given IntegerArray.

random_like(Distribution distribution) -> IntegerArray

Return a IntegerArray of random numbers with the same shape and type as a given IntegerArray.

Parameters

  • distribution: A Distribution used to populate the given array.

random_like() -> IntegerArray

Return a IntegerArray of random numbers with the same shape and type as a given IntegerArray.