A donkey is equally hungry and thirsty
d
Find a file
Francesco Mecca ba3dd7d246 typo
2018-02-24 05:37:51 +01:00
asino.c LICENSE 2016-12-08 22:10:33 +01:00
asino.cpp LICENSE 2016-12-08 22:10:33 +01:00
asino.d start counting from 1 2018-02-24 05:36:30 +01:00
asino.py LICENSE 2016-12-08 22:10:33 +01:00
LICENSE LICENSE 2016-12-08 22:10:33 +01:00
README.md typo 2018-02-24 05:37:51 +01:00

Buridan's donkey

Written in c++, c and python, this program given some choices orders them in casual order. More info at: http://francescomecca.eu/index.php/archives/207

D

The D version is the most complete and provides the following options:

-n --numbers enable number output on screen
-d --divider divide the arguments using a different divider
-v --version show version and exit
-e  --engine Choose the RNG between "mt" (Mersenne-Twister, default), "x" (xorshift),
				"dr" (/dev/random), "du" (/dev/urandom)

The program can also be used piped to another process.

$ echo D C++ | ./asino -d " " -n 1
1. D
2. C++

C

The C version makes a system call to get a random pool of numbers.

Compile including math library.

It supports cli arguments:

	  --urandom, -u: no arguments, uses /dev/urandom instead of /dev/random
	  --no-numbers, -n: no arguments, disable line numbers

Example

$ ls

asino.c  asino.cpp  asino.py  README.md

$ ls | asino

1. asino.c
2. README.md
3. asino.py
4. asino.cpp