Skip to content

Random

graph BT
N1["Random"] -->|inherits| N2["Any"];

Characteristics

Quality Value
Inherits global.Any
Extends N/A
Decorators N/A
Is enum false
Is sealed false
Is extern false
Is abstract false
Is generator false
Has value semantics false
Has stored properties false
Should register destructor false
Has atomic memory true
Is copy assignable false
Is zero initializable true

Functions

float

float [F, RGen] (gen @RGen) -> F

uniform

uniform [F, RGen] (gen @RGen, a F, b F) -> F

range

range [RGen] (gen @RGen, rng IndexRange) -> Len

choice

choice [RGen, Seq] (gen @RGen, seq @Seq, weights: List[UInt64]?, cum_weights: List[UInt64]?) -> Seq.DType

choices

choices [RGen, Pop] (gen @RGen, population @Pop, k ULen = 1, weights: List[UInt64]?, cum_weights: List[UInt64]?) -> List[Pop.DType]

shuffle

shuffle [RGen, Seq] (gen @RGen, seq @Seq) -> Nil

sample

sample [RGen, Seq] (gen @RGen, population @Seq, k ULen, counts: List[ULen]?) -> List[Seq.DType]

__binary_search [Seq] (seq @Seq, val @Seq.DType) -> ULen

Methods

construct

#default
#Gambol.function.alwaysinline
construct (s strictly @Self) -> Self