The OpenD Programming Language

RandomSample

Lazy input or forward range containing a random sample. VitterStrides is used to skip elements. Complexity: O(n) Note:

  • The structure holds a pointer to a generator.
  • The structure must not be copied (explicitly or implicitly) outside from a function.

Constructors

this
this(Range range, G gen, size_t n)
this(Range range, G* gen, size_t n)

Members

Functions

empty
bool empty()
front
auto ref front()

Range primitives

length
size_t length()
popFront
void popFront()
save
auto save()

Range primitives

Meta