GithubHelp home page GithubHelp logo

buridans_donkey's Introduction

Buridan's donkey

Originally written in c++ and python, this program given some choices orders them in casual order. I wrote about it at: http://francescomecca.eu/index.php/archives/207

Now I rewrite the Buridan's donkey in whatever language I feel passionate about.

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

buridans_donkey's People

Contributors

danseraf avatar fragsornotfrags avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.