Created
February 25, 2016 14:36
-
-
Save Johnz86/ac3b4141a354bfff59f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
function vowel() { | |
vowels=aeiouy | |
p=$(( $RANDOM % ${#vowels})) | |
echo -n ${vowels:$p:1} | |
} | |
function consonant(){ | |
consonants=bcdfghjklmnpqrstvwxz | |
randomNumber=$(( $RANDOM % ${#consonants})) | |
echo -n ${consonants:$randomNumber:1} | |
} | |
echo `consonant; vowel; consonant; vowel; consonant; vowel` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment