mir-random — Libmir Archive
Libmir Archive
API Reference Index
mir-random Guide
Dlang.org
RandomSample.this
mir
random
algorithm
RandomSample
Constructs a `RandomSample` struct from a range, random generator, and sample size `n`.
this
(Range range, G gen, size_t n)
this
(Range range, G* gen, size_t n)
this
(Range range, G gen, size_t n)
struct
RandomSample
(G, Range)
@
system
this
()
(
Range
range
,
ref
G
gen
,
size_t
n
)
if
(
is
(
G
== struct)
)
mir
random
algorithm
RandomSample
constructors
this
functions
empty
front
length
popFront
save
Constructs a `RandomSample` struct from a range, random generator, and sample size `n`.