Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Readme.md

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

Packages

No packages published
You can’t perform that action at this time.