Shuffle lines of text with reservior sampling.
cargo build --release
The resulting binary is found under target/release/shuf
.
``` USAGE: shuf [OPTIONS] [path]
FLAGS: -h, --help Prints help information -V, --version Prints version information
OPTIONS:
-n, --head-count=COUNT
ARGS:
src/shuf.rs
contains a reusable implementation of reservior sampling, that works on any iterable.