aboutsummaryrefslogtreecommitdiff
path: root/bin/rndi.awk
Commit message (Collapse)AuthorAgeFilesLines
* Remove superfluous `exit` calls at end of `BEGIN`Tom Ryder2020-11-191-3/+0
| | | | Thanks izabera
* Two-space sentences in shell commentsTom Ryder2018-12-271-1/+1
|
* Allow equal bounds in rndi(1df)Tom Ryder2018-11-241-2/+2
| | | | | | | | | Calling rndi(1df) like `rndi 1 1` should work; it should just always yield one. Instead, it was complaining about the second bound not being greater than the first. I noticed this because I only had one background image in ~/.xbackgrounds and ran xrbg(1df), and it didn't know how to handle it.
* Work around mawk's srand() behaviourTom Ryder2017-07-031-1/+4
| | | | | | | Specific values for these tasks get chosen way more often than other in mawk, and it seems to be caused by the random seed being above a certain value. Not sure if it's a bug or how it interacts with the POSIX standard, but this seems to fix it.
* Lots of cleanup of awk scriptsTom Ryder2017-07-021-7/+28
| | | | Mostly inspired by suggestions from gawk --lint
* Stylistic tweaks to awk scriptsTom Ryder2016-12-111-5/+3
|
* Move awk scripts into shb(1)Tom Ryder2016-08-161-0/+22