Sample input given some probability
Install with clib:
$ clib install jb55/samp
Install with nix:
$ nix-env -f https://jb55.com/pkgs -iA samp
Install with make:
$ git clone https://github.com/jb55/samp.git /tmp/samp
$ cd /tmp/samp && make install
Return a line 50% of the time
$ samp < data.txt
Return a line 10% of the time
$ samp 0.1 < data.txt
MIT