A small script that randomly generates words from dictionary files using system nanoseconds.
This script does not work with z shell because it uses readarray in order to make the
dictionary accesible to the script. In its current form, it's a linux only application
for bash interpreters. You can use the chsh
command to change your default
shell:
git clone https://github.com/LEDparty/bash-rwg
cd bash-rwg
chmod +x rwg.sh
Within the bash-rwg folder, executing the command without arguments generates one random word:
./rwg.sh
If you are using z shell as your primary shell, but don't want to change your default settings, you can run this command from the bash-rwg folder you installed:
bash rwg.sh
You can use the -n option to generate a name instead:
./rwg.sh -n
You can generate any number of random words, and the sequence is not predictable:
./rwg.sh 20
./rwg.sh -n 10