Skip to main content

random_like

Method of RealArray.

Overloads

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

random_like(Distribution distribution) -> RealArray

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

Parameters

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

random_like() -> RealArray

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