bernoulliSampling

Bernoulli sampling of lines from the input stream.

Each input line is a assigned a random value and output if less than cmdopt.inclusionProbability. The order of the lines is not changed.

This routine supports random value printing and gen-random-inorder value printing.

void
bernoulliSampling
(
Flag!"generateRandomAll" generateRandomAll
OutputRange
)
(,
auto ref OutputRange outputStream
)
if (
isOutputRange!(OutputRange, char)
)

Meta