LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

rolldice

Roll virtual dice from the command line

TLDR

Roll a single 20 sided dice
$ rolldice d20
copy
Roll two six sided dice and drop the lowest
$ rolldice 2d6s1
copy
Roll with a modifier
$ rolldice 2d20+5
copy
Roll a dice multiple times
$ rolldice 2xd20
copy

SYNOPSIS

rolldice dicespecification_

DESCRIPTION

rolldice simulates rolling dice with various configurations. It supports standard dice notation used in tabletop gaming, including modifiers, dropping dice, and multiple rolls.The tool is useful for tabletop RPG players, game developers, or anyone needing random dice results.

PARAMETERS

Dice are specified in NdS format where:

N = number of dice, d = dice indicator, S = number of sides
sN
Drop lowest N rolls
+N or -N
Add or subtract modifier
x
Repeat roll multiple times

INSTALL

brew install rolldice
copy

CAVEATS

Uses system random number generator. Results are pseudorandom, not cryptographically secure.

HISTORY

Created as a utility for tabletop gaming and random number generation using standard dice notation.

SEE ALSO

shuf(1), random(4)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid