Generates random strings. I got tired of having to go to random.org, and this takes like 2 seconds.

VERSION=3  
NUM=0  
LEN=0  
MODE=0  
ALLOW=""  
for Y in $@  
do  
        if [ $Y = "-n" ]
        then
                MODE=1
                ALLOW=$ALLOW"0-9"
        elif [ $Y = "-s" ]
        then
                MODE=5
                ALLOW=$ALLOW'!@#$%^&*()-_=+'
        elif [ $Y = "-l" ]
        then
                MODE=2
                ALLOW=$ALLOW"a-z"
        elif [ $Y = "-u" ]
        then
                MODE=3
                ALLOW=$ALLOW"A-Z"
        elif [ $Y = "-c" ]
        then
                ALLOW="0-9A-F"
                LEN=6
        elif [ $Y = "-X" ]
        then
                ALLOW='0-9A-Fa-f!@#$%^&**()-_=+'
        elif [[ "$Y" =~ ^[0-9]+$ ]] && [[ LEN -eq 0 ]]
        then
                LEN=$Y
        elif [[ "$Y" =~ ^[0-9]+$ ]] && [[ LEN -gt 0 ]]
        then
                NUM=$Y
        elif [ $Y = "-b" ]
        then
                MODE=0
        else
                echo "rand [arg] [length] [number]"
                echo "Arguements"
                echo -e "-b\tbasic\n-X\tcomplex\n-n\tnumber\n-l\tlowercase\n-u\tuppercase\n-s\tsymbo                                                                                                                                         ls\n-c\tcolor"
                exit
        fi
done  
if [ $LEN -eq 0 ]  
then  
        LEN=10
fi  
if [ $NUM -eq 0 ]  
then  
        NUM=1
fi  
if [ x$ALLOW = "x" ]  
then  
        ALLOW="A-Za-z0-9"
fi  
X=0  
while [ $X -lt $NUM ]  
do  
        </dev/urandom tr -dc $ALLOW | head -c$LEN;echo
        let "X++"
done