aboutsummaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-03 16:44:09 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-03 16:44:09 +1200
commit84d4cc96515d440fd03cf5149d4ed042c74c3d36 (patch)
tree2aedb661e8d1d726199618ec4ae0b3aa42c6d336 /man
parentChange maybe(1) to POSIX sh, rename myb(1) (diff)
downloaddotfiles-84d4cc96515d440fd03cf5149d4ed042c74c3d36.tar.gz
dotfiles-84d4cc96515d440fd03cf5149d4ed042c74c3d36.zip
Allow numerator and denominator in myb(1)
Diffstat (limited to 'man')
-rw-r--r--man/man1/myb.113
1 files changed, 10 insertions, 3 deletions
diff --git a/man/man1/myb.1 b/man/man1/myb.1
index ef9babc9..39753591 100644
--- a/man/man1/myb.1
+++ b/man/man1/myb.1
@@ -3,17 +3,24 @@
.B myb
\- possibly exit with success
.SH USAGE
-.B myb [DENOMINATOR]
+.B myb
+.br
+.B myb
+DENOMINATOR
+.br
+.B myb
+NUMERATOR DENOMINATOR
.SH DESCRIPTION
Like true(1) or false(1), but exits with success randomly with a given
probability. Good for using in tests. Exits with 2 rather than 1 on usage
errors.
.P
-The denominator defaults to 2 for a roughly equal chance of success or failure.
-rndi(1) is used for the randomness.
+The numerator default to 1 and the denominator to 2 for a roughly equal chance
+of success or failure. rndi(1) is used for the randomness.
.P
$ myb
$ myb 3
+ $ myb 2 5
.SH SEE ALSO
true(1), false(1), try(1), rndi(1)
.SH AUTHOR