Skip to content

Latest commit

 

History

History
34 lines (17 loc) · 511 Bytes

Readme.md

File metadata and controls

34 lines (17 loc) · 511 Bytes

samp

Sample input given some probability

Installation

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

Examples

Return a line 50% of the time

$ samp < data.txt

Return a line 10% of the time

$ samp 0.1 < data.txt

License

MIT