feat: default 4 word

master
Tim 5 months ago
parent 688d43c47e
commit d4e33d6378
  1. 4
      bin/gen

@ -6,14 +6,14 @@ pickaword() {
}
numWords=$1
[[ ! -z $1 ]] && numWords=$1 || numWords=4
separator="-"
count=0
currentWord=""
while [[ $count -lt $numWords ]]; do
[[ $count != 0 ]] && echo -n $separator
num=$((5 + RANDOM % 10))
num=$((3 + RANDOM % 10))
word=$(pickaword $num)
echo -n "$word"
count=$(($count + 1));

Loading…
Cancel
Save