Skip to content

jb55/samp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

C program to sample input given some probability

Resources

Stars

Watchers

Forks

Packages

No packages published