summary refs log tree commit diff
path: root/bin/randgen
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2020-01-26 17:16:07 +0100
committerRobert Günzler <r@gnzler.io>2020-01-26 18:00:59 +0100
commitf5d56602df70950de6b7d40966b00c9939c81763 (patch)
treeb50ffeb5496fe3525cc1bab2629389ced95435b7 /bin/randgen
Intial commit of v2
See https://drewdevault.com/2019/12/30/dotfiles.html
Diffstat (limited to 'bin/randgen')
-rwxr-xr-xbin/randgen8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/randgen b/bin/randgen
new file mode 100755
index 0000000..77bca83
--- /dev/null
+++ b/bin/randgen
@@ -0,0 +1,8 @@
+#!/bin/zsh
+
+N=${1:-10}
+
+for d in {0..$N}; do
+    printf '%s' ${RANDOM:0:1}
+done
+printf '\n'