#coin #random #utilities #terminal #dice #cli #toss

app coin-rs

Toss a coin and other random utilities for the terminal

4 releases (breaking)

0.4.0 Feb 3, 2023
0.3.0 Jan 14, 2023
0.2.0 Jan 14, 2023
0.1.0 Jan 14, 2023

#2575 in Command line utilities

MIT license

10KB
232 lines

Coin-rs

Toss coins and other random utilities for the terminal

Installation

$ cargo install coin-rs

Usage

If you want to toss a coin run:

toss

Which is equivalent to

toss 1 coin -p 0.5

If you want to toss a dice run

toss dice

Which is equivalent to

toss 1 dice -m 1 -M 6

If you want to let the program extract (with replacement) between two or more options run

toss 10 choose option1 option2 ...

If you want to let the program extract (without replacement) between two or more options run

toss 10 extract option1 option2 ...

For more information about the options provided, please run toss --help and toss <coin | dice | choose | extract> --help

Dependencies

~1.5–2.1MB
~41K SLoC