ArkoudaRandomCompat¶
Usage
use ArkoudaRandomCompat;
or
import ArkoudaRandomCompat;
- record randomStream¶
- type eltType = int¶
- proc init(type t)¶
- proc init(type t, seed)
- proc ref fill(ref arr: []) where arr.isRectangular()¶
- proc ref fill(ref arr: [], min: arr.eltType, max: arr.eltType) where arr.isRectangular()
- proc ref permute(const ref arr: [?d] ?t): [] t where is1DRectangularDomain(d) && isCoercible(this.eltType, d.idxType)¶
- proc ref permute(d: domain(?)): [] d.idxType where is1DRectangularDomain(d) && isCoercible(this.eltType, d.idxType)
- proc ref sample(d: domain(?), n: int, withReplacement = false): [] d.idxType throws where is1DRectangularDomain(d)¶
- proc ref next(): eltType¶
- proc skipTo(n: int)¶
- proc sample(arr: [?d] ?t, n: int, withReplacement: bool): [] t throws¶