aboutsummaryrefslogtreecommitdiff
path: root/man/man1/myb.1
blob: 39753591e916b82d525d3288a802fdb425f43ee1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.TH MYB 1 "August 2016" "Manual page for myb"
.SH NAME
.B myb
\- possibly exit with success
.SH USAGE
.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 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
Tom Ryder <tom@sanctum.geek.nz>