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 |
#6 in #coin
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.4–2MB
~38K SLoC