Projects / roll


roll is a command-line program that rolls a user-defined dice sequence and displays the result. The die are defined using dN, where N is the number of sides. They can be rolled multiple times by prepending the number of repetitions (e.g., 3d6) and used in simple mathematical expressions (e.g., 2d8+4).

Operating Systems

RSS Recent releases

  •  31 Mar 2012 19:57

Release Notes: roll now checks overflows.

  •  28 Aug 2011 20:32

Release Notes: This release adds Fudge dice (+,-, empty), reroll filters, and roll series.

  •  15 Dec 2008 13:26

Release Notes: A new command line option to round up to zero negative results was added. A minor bug which prevented compilation on FreeBSD was fixed.

  •  29 Jan 2008 03:46

Release Notes: A bug that prevented the correct parsing of expressions with more than two terms was fixed.

  •  22 Aug 2007 14:21

Release Notes: A bug in the 1d% percentile dices (values over 100 were possible) has been fixed.

RSS Recent comments

26 Apr 2009 17:26 joaosantana Thumbs up

Thanks for writing this program. I have tried to do the same in C# but without success. I have translated to my language (I'm Brazilian) before compiling, and I need to know how include my translation.

26 May 2008 12:53 Avatar corti

Re: expressions and --verbose

> I am trying to track down a way of

> "1d6-1 + 1d6+2" without using

> perl to as a wrapper to make

> "2d6+1"

> same with "1d6+1+1-1"

Sorry that I didn't answer earlier but I didn't notice the comment. Should now work as expected.

13 Jan 2008 14:48 hpavc

expressions and --verbose
Very cool program, thanks.

I am trying to track down a way of "1d6-1 + 1d6+2" without using perl to as a wrapper to make "2d6+1"

same with "1d6+1+1-1"



Project Spotlight

Immutable Collections for Java

Functional language style immutable collections for Java.


Project Spotlight


An image viewer designed around browsing folders of images.