diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-03 17:57:47 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-03 18:03:38 +1200 |
commit | 8783a7ba4fccb5f8bb178241a98392cb4b6f6f6c (patch) | |
tree | 9323cf3529ba1c809beed46256889b8ee88c6d0d /man/man1/rndi.1 | |
parent | Allow numerator and denominator in myb(1) (diff) | |
download | dotfiles-8783a7ba4fccb5f8bb178241a98392cb4b6f6f6c.tar.gz dotfiles-8783a7ba4fccb5f8bb178241a98392cb4b6f6f6c.zip |
Add rnds(1)
Low-quality random seed attempt.
Diffstat (limited to 'man/man1/rndi.1')
-rw-r--r-- | man/man1/rndi.1 | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/man/man1/rndi.1 b/man/man1/rndi.1 index b645d504..094a5f62 100644 --- a/man/man1/rndi.1 +++ b/man/man1/rndi.1 @@ -1,20 +1,25 @@ .TH RNDI 1 "August 2016" "Manual page for rndi" .SH NAME .B rndi -\- return a low-quality random integer between two bounds +\- return a low-quality random integer .SH SYNOPSIS .B rndi 0 10 +.br +.B rndi +0 10 "$(rnds)" .SH DESCRIPTION .B rndi returns a random integer ranging from the first argument to the second argument -in a POSIX-compliant way (using awk). +in a POSIX-compliant way (using awk), using the optional third argument as a +seed. .P -The answer returned is low-quality; given some implementations of awk, it may -even return the same result if run within the same second. This should not be -used in any sort of security or statistical context. The author wrote it to -support scripts to choose a random background image from a directory. +The answer returned is low-quality; given some implementations of awk and no +properly random seed, it may even return the same result if run within the same +second. This should not be used in any sort of security or statistical context. +The author wrote it to support scripts to choose a random background image from +a directory. .SH SEE ALSO -rnda(1), rndf(1), rndl(1), rndn(6) +rnda(1), rndf(1), rndl(1), rnds(1), rndn(6) .SH AUTHOR Tom Ryder <tom@sanctum.geek.nz> |