.. default-domain:: chpl .. module:: ArkoudaRandomCompat ArkoudaRandomCompat =================== **Usage** .. code-block:: chapel use ArkoudaRandomCompat; or .. code-block:: chapel import ArkoudaRandomCompat; .. record:: randomStream .. attribute:: type eltType = int .. method:: proc init(type t) .. method:: proc init(type t, seed) .. method:: proc ref fill(ref arr: []) where arr.isRectangular() .. method:: proc ref fill(ref arr: [], min: arr.eltType, max: arr.eltType) where arr.isRectangular() .. method:: proc ref permute(const ref arr: [?d] ?t): [] t where is1DRectangularDomain(d) && isCoercible(this.eltType, d.idxType) .. method:: proc ref permute(d: domain(?)): [] d.idxType where is1DRectangularDomain(d) && isCoercible(this.eltType, d.idxType) .. method:: proc ref sample(d: domain(?), n: int, withReplacement = false): [] d.idxType throws where is1DRectangularDomain(d) .. method:: proc ref sample(const x: [?dom], size: ?sizeType = none, replace = true) throws .. method:: proc ref next(): eltType .. method:: proc skipTo(n: int) .. function:: proc sample(arr: [?d] ?t, n: int, withReplacement: bool): [] t throws .. function:: proc choiceUniform(stream, X: domain(?), size: ?sizeType, replace: bool) throws