Crates.io | coin-rs |
lib.rs | coin-rs |
version | 0.4.0 |
source | src |
created_at | 2023-01-14 10:21:32.770392 |
updated_at | 2023-02-03 18:49:38.382437 |
description | Toss a coin and other random utilities for the terminal |
homepage | |
repository | https://github.com/fedfontana/coin-rs |
max_upload_size | |
id | 758780 |
size | 20,576 |
Toss coins and other random utilities for the terminal
$ cargo install coin-rs
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