simpleRandomSamplingWithReplacement

Simple random sampling with replacement.

All lines in files and/or standard input are read in. Then random lines are selected one at a time and output. Lines can be selected multiple times. This process continues until the desired number of samples (--n|num) has been output. Output continues indefinitely if a sample size was not provided.

void
simpleRandomSamplingWithReplacement
(
OutputRange
)
(
,
auto ref OutputRange outputStream
)
if (
isOutputRange!(OutputRange, char)
)

Meta